mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-26 16:03:02 +00:00
Refactor
This commit is contained in:
parent
5dc27b6d4b
commit
ab995930ff
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue