mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Refactor
This commit is contained in:
parent
5dc27b6d4b
commit
ab995930ff
@ -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 New Issue
Block a user