fix: search being broken on dev through mastodon

This commit is contained in:
Mar0xy 2023-10-30 13:09:20 +01:00
parent 4fa15f27c7
commit 20a8bb0467
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -183,7 +183,7 @@ export class SearchService {
}
}
const res = await this.meilisearchNoteIndex!.search(q, {
sort: [`createdAt:${opts.order}`],
sort: [`createdAt:${opts.order ? opts.order : 'desc'}`],
matchingStrategy: 'all',
attributesToRetrieve: ['id', 'createdAt'],
filter: compileQuery(filter),