mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 17:35:44 +01:00
Fix bug
This commit is contained in:
parent
72d5a2f9b9
commit
534ef9e999
1 changed files with 1 additions and 5 deletions
|
@ -8,10 +8,6 @@ import User from '../../../../models/user';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get notes of a user
|
* Get notes of a user
|
||||||
*
|
|
||||||
* @param {any} params
|
|
||||||
* @param {any} me
|
|
||||||
* @return {Promise<any>}
|
|
||||||
*/
|
*/
|
||||||
module.exports = (params, me) => new Promise(async (res, rej) => {
|
module.exports = (params, me) => new Promise(async (res, rej) => {
|
||||||
// Get 'userId' parameter
|
// Get 'userId' parameter
|
||||||
|
@ -118,7 +114,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
|
||||||
if (withMedia) {
|
if (withMedia) {
|
||||||
query.mediaIds = {
|
query.mediaIds = {
|
||||||
$exists: true,
|
$exists: true,
|
||||||
$ne: null
|
$ne: []
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
Loading…
Reference in a new issue