diff --git a/cli/src/remote/api/openOperations.ts b/cli/src/remote/api/openOperations.ts index 56f5fad9..a7e5821c 100644 --- a/cli/src/remote/api/openOperations.ts +++ b/cli/src/remote/api/openOperations.ts @@ -12,6 +12,12 @@ export interface OpenOperation { anonymous?: boolean; } export const openOperations: readonly OpenOperation[] = [ + { + name: 'system notification-logs', + method: 'GET', + path: 'system/notify-log', + }, + { name: 'task view-list', method: 'GET', path: 'crons/views' }, { name: 'task view-create', @@ -478,7 +484,12 @@ export const openOperations: readonly OpenOperation[] = [ path: 'system/config/dependence-clean', body: 'json', }, - { name: 'dashboard record', method: 'POST', path: 'dashboard/record', body: 'json' }, + { + name: 'dashboard record', + method: 'POST', + path: 'dashboard/record', + body: 'json', + }, { name: 'dashboard overview', method: 'GET', path: 'dashboard/overview' }, { name: 'dashboard trend', method: 'GET', path: 'dashboard/trend' }, { name: 'dashboard top-time', method: 'GET', path: 'dashboard/top-time' }, diff --git a/test/back/wpush-grpc.test.cjs b/test/back/wpush-grpc.test.cjs index 3229882d..c40070fa 100644 --- a/test/back/wpush-grpc.test.cjs +++ b/test/back/wpush-grpc.test.cjs @@ -64,7 +64,7 @@ test('decoded SystemNotify requests reach WPUSH with explicit or saved configura '../config/const': constants, '../config/util': {}, '../data/dependence': {}, - '../data/system': {}, + '../data/system': { AuthDataType: { notifyLog: 'notifyLog' }, NotifyStatus: { success: 0, fail: 1 }, SystemModel: { create: async () => {}, findAll: async () => [] } }, '../shared/pLimit': {}, '../schedule/client': {}, '../shared/i18n': { t: (x) => x }, @@ -79,7 +79,7 @@ test('decoded SystemNotify requests reach WPUSH with explicit or saved configura wpushApiKey: 'saved-key', }), }; - const system = new SystemService(); + const system = new SystemService({ error() {} }); system.notificationService = notification; for (const info of [