Skip to content
Snippets Groups Projects
Commit 97f9290a authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] sync was not good about trimming < 1Ğ1 accounts

parent 89db0b40
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ export class LokiSIndex extends LokiIndex<SindexEntry> implements SIndexDAO {
async getAvailableForConditions(conditionsStr: string): Promise<SindexEntry[]> {
const sources = this.collection
.chain()
.find({ conditions: { $regex: conditionsStr } })
.find({ conditions: { $contains: conditionsStr } })
.simplesort('writtenOn')
.data()
.filter(s => this.collection.find({ identifier: s.identifier, pos: s.pos, consumed: true }).length === 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment