mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 05:53:08 +02:00
parent
0b6b6a4f2f
commit
92701e5cec
1 changed files with 1 additions and 3 deletions
|
@ -106,9 +106,7 @@ export default define(meta, (ps) => new Promise(async (res, rej) => {
|
||||||
|
|
||||||
const withFiles = ps.withFiles != undefined ? ps.withFiles : ps.media;
|
const withFiles = ps.withFiles != undefined ? ps.withFiles : ps.media;
|
||||||
|
|
||||||
if (withFiles) {
|
if (withFiles) query.fileIds = { $exists: true, $ne: null };
|
||||||
query.fileIds = withFiles ? { $exists: true, $ne: null } : [];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ps.poll != undefined) {
|
if (ps.poll != undefined) {
|
||||||
query.poll = ps.poll ? { $exists: true, $ne: null } : null;
|
query.poll = ps.poll ? { $exists: true, $ne: null } : null;
|
||||||
|
|
Loading…
Reference in a new issue