This commit is contained in:
syuilo 2020-02-05 21:41:49 +09:00
parent 331d6074c1
commit a9e9fe04ac

View file

@ -37,9 +37,7 @@ export const meta = {
};
export default define(meta, async (ps, user) => {
const message = await MessagingMessages.findOne({
id: ps.messageId,
});
const message = await MessagingMessages.findOne(ps.messageId);
if (message == null) {
throw new ApiError(meta.errors.noSuchMessage);