Skip to content
Snippets Groups Projects
Commit 534ef9e9 authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 72d5a2f9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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