style: 简化写法

This commit is contained in:
手瓜一十雪
2024-12-02 11:16:12 +08:00
parent 5376e16c9f
commit 3b5d2c8f6f
5 changed files with 13 additions and 14 deletions

View File

@@ -14,6 +14,6 @@ export class GetCollectionList extends OneBotAction<Payload, any> {
payloadSchema = SchemaData;
async _handle(payload: Payload) {
return await this.core.apis.CollectionApi.getAllCollection(parseInt(payload.category.toString()), +payload.count);
return await this.core.apis.CollectionApi.getAllCollection(+payload.category, +payload.count);
}
}