mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 23:19:37 +00:00
fix: no_cache param of api get_group_list
This commit is contained in:
parent
ce5d5a07ef
commit
286446c816
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user