Fix bug
This commit is contained in:
parent
13a6d4d69c
commit
58f6e6e57a
1 changed files with 1 additions and 5 deletions
|
@ -8,10 +8,6 @@ import User from '../../../../models/user';
|
|||
|
||||
/**
|
||||
* Get notes of a user
|
||||
*
|
||||
* @param {any} params
|
||||
* @param {any} me
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
module.exports = (params, me) => new Promise(async (res, rej) => {
|
||||
// Get 'userId' parameter
|
||||
|
@ -118,7 +114,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
|
|||
if (withMedia) {
|
||||
query.mediaIds = {
|
||||
$exists: true,
|
||||
$ne: null
|
||||
$ne: []
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
|
|
Loading…
Reference in a new issue