补齐审批退回结果通知 [09-04-approval-return-notification-gap]
这个提交包含在:
@@ -1,6 +1,7 @@
|
||||
const Fastify = require('fastify');
|
||||
|
||||
const { AppError } = require('../../../src/utils/AppError');
|
||||
const { NOTIFICATION_TYPES } = require('../../../src/constants/notificationTypes');
|
||||
const { encryptStringOrThrow } = require('../../../src/services/crypto');
|
||||
|
||||
const notificationsRoutes = require('../../../src/routes/notifications');
|
||||
@@ -446,8 +447,13 @@ describe('notifications channel routes', () => {
|
||||
timeoutMs: 800,
|
||||
routing: {
|
||||
roleCodes: ['manager'],
|
||||
domainScopes: ['workflow'],
|
||||
allowedTypes: ['workflow.task_assigned'],
|
||||
domainScopes: ['workflow', 'leave', 'procurement', 'travel'],
|
||||
allowedTypes: [
|
||||
NOTIFICATION_TYPES.workflowTaskAssigned,
|
||||
NOTIFICATION_TYPES.leaveReturned,
|
||||
NOTIFICATION_TYPES.purchaseRequestReturned,
|
||||
NOTIFICATION_TYPES.travelRequestReturned,
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -460,6 +466,16 @@ describe('notifications channel routes', () => {
|
||||
webhookUrl: null,
|
||||
secretConfigured: false,
|
||||
secretMasked: null,
|
||||
routing: {
|
||||
roleCodes: ['manager'],
|
||||
domainScopes: ['workflow', 'leave', 'procurement', 'travel'],
|
||||
allowedTypes: [
|
||||
NOTIFICATION_TYPES.workflowTaskAssigned,
|
||||
NOTIFICATION_TYPES.leaveReturned,
|
||||
NOTIFICATION_TYPES.purchaseRequestReturned,
|
||||
NOTIFICATION_TYPES.travelRequestReturned,
|
||||
],
|
||||
},
|
||||
}),
|
||||
);
|
||||
expect(stateChannels[0].config_json.secretEncrypted).toBeUndefined();
|
||||
|
||||
在新工单中引用
屏蔽一个用户