|
@@ -25,7 +25,7 @@ export class ChatService extends BaseService<modelType> {
|
|
|
|
|
|
async query(filter: SearchBase, pageOptions: PageOptions = {}): Promise<Array<any>> {
|
|
|
const dup = cloneDeep(filter.getFilter());
|
|
|
- const data = await this.model.find(dup, {}, { ...pageOptions }).populate('speaker');
|
|
|
+ const data = await this.model.find(dup, {}, { ...pageOptions, sort: { 'meta.createdAt': -1 } }).populate('speaker');
|
|
|
return data;
|
|
|
}
|
|
|
|