style: 简化写法

This commit is contained in:
手瓜一十雪
2024-12-02 11:16:12 +08:00
parent 073860e70a
commit 59ddb84cb1
5 changed files with 13 additions and 14 deletions

View File

@@ -16,7 +16,7 @@ export class SetMsgEmojiLike extends OneBotAction<Payload, any> {
payloadSchema = SchemaData;
async _handle(payload: Payload) {
const msg = MessageUnique.getMsgIdAndPeerByShortId(parseInt(payload.message_id.toString()));
const msg = MessageUnique.getMsgIdAndPeerByShortId(+payload.message_id);
if (!msg) {
throw new Error('msg not found');
}