Fix bug
This commit is contained in:
@ -26,7 +26,7 @@ export const meta = {
|
||||
|
||||
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
|
||||
const [ps, psErr] = getParams(meta, params);
|
||||
if (psErr) throw psErr;
|
||||
if (psErr) return rej(psErr);
|
||||
|
||||
const message = await Message.findOne({
|
||||
_id: ps.messageId,
|
||||
|
Reference in New Issue
Block a user