mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 11:43:09 +02:00
Fix #1740
This commit is contained in:
parent
1344ffa67d
commit
e32884f07f
1 changed files with 3 additions and 2 deletions
|
@ -128,7 +128,8 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
|
|||
let q: any = {
|
||||
$and: [{
|
||||
tagsLower: ps.tag.toLowerCase()
|
||||
}]
|
||||
}],
|
||||
deletedAt: { $exists: false }
|
||||
};
|
||||
|
||||
const push = (x: any) => q.$and.push(x);
|
||||
|
@ -339,7 +340,7 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
|
|||
}
|
||||
|
||||
if (q.$and.length == 0) {
|
||||
q = {};
|
||||
delete q.$and;
|
||||
}
|
||||
|
||||
// Search notes
|
||||
|
|
Loading…
Reference in a new issue