fix: method signature of _handle

This commit is contained in:
Wesley F. Young committed 2024-08-10 22:22:52 +08:00
1 parent 8839563ff8
commit ae5d50141b
69 files changed
+97 -78

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ export class GetGroupFileCount extends BaseAction<Payload, { count: number }> {
actionName = ActionName.GetGroupFileCount;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
async _handle(payload: Payload) {
const NTQQGroupApi = this.CoreContext.getApiContext().GroupApi;
const ret = await NTQQGroupApi.GetGroupFileCount([payload.group_id?.toString()]);
return { count: ret.groupFileCounts[0] };