mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
parent
31ffccf851
commit
4565b83053
@ -106,9 +106,7 @@ export default define(meta, (ps) => new Promise(async (res, rej) => {
|
||||
|
||||
const withFiles = ps.withFiles != undefined ? ps.withFiles : ps.media;
|
||||
|
||||
if (withFiles) {
|
||||
query.fileIds = withFiles ? { $exists: true, $ne: null } : [];
|
||||
}
|
||||
if (withFiles) query.fileIds = { $exists: true, $ne: null };
|
||||
|
||||
if (ps.poll != undefined) {
|
||||
query.poll = ps.poll ? { $exists: true, $ne: null } : null;
|
||||
|
Loading…
Reference in New Issue
Block a user