mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
Refactor
This commit is contained in:
parent
331d6074c1
commit
a9e9fe04ac
1 changed files with 1 additions and 3 deletions
|
@ -37,9 +37,7 @@ export const meta = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default define(meta, async (ps, user) => {
|
export default define(meta, async (ps, user) => {
|
||||||
const message = await MessagingMessages.findOne({
|
const message = await MessagingMessages.findOne(ps.messageId);
|
||||||
id: ps.messageId,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (message == null) {
|
if (message == null) {
|
||||||
throw new ApiError(meta.errors.noSuchMessage);
|
throw new ApiError(meta.errors.noSuchMessage);
|
||||||
|
|
Loading…
Reference in a new issue