build: 1.3.5-beta33
This commit is contained in:
1 parent
3e8d8817bb
commit
db8d30d27b
5 files changed
+11
-22
No files matched your search
@@ -11,7 +11,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
no_cache: { type: 'boolean' },
|
||||
no_cache: { type: ['boolean', 'string'] },
|
||||
}
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
@@ -22,7 +22,7 @@ class GetGroupList extends BaseAction<Payload, OB11Group[]> {
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
let groupList: Group[] = Array.from(groups.values());
|
||||
if (groupList.length === 0 || payload?.no_cache === true /*|| payload.no_cache === 'true'*/) {
|
||||
if (groupList.length === 0 || payload?.no_cache === true || payload.no_cache === 'true') {
|
||||
groupList = await NTQQGroupApi.getGroups(true);
|
||||
// log('get groups', groups);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user