fix: no_cache param of api get_group_list

This commit is contained in:
linyuchen 2024-04-30 18:49:55 +08:00
parent 2bd0f6934a
commit eb93dd5005

View File

@ -16,7 +16,7 @@ class GetGroupList extends BaseAction<Payload, OB11Group[]> {
protected async _handle(payload: Payload) {
let groupList: Group[] = Array.from(groups.values());
if (groupList.length === 0 || payload.no_cache === true) {
if (groupList.length === 0 || payload?.no_cache === true) {
groupList = await NTQQGroupApi.getGroups(true);
// log('get groups', groups);
}