fix: align signature review and admin operations

This commit is contained in:
hectorzhao
2026-07-27 22:07:51 +08:00
parent 9891ffee23
commit df70b336a0
22 changed files with 326 additions and 57 deletions
@@ -53,6 +53,7 @@ function createPrismaMock() {
status: 'active',
group: {
id: 'group-1',
name: '默认通道组',
carrier: 'mobile',
status: 'active',
retryEnabled: true,
@@ -1753,7 +1754,13 @@ describe('SendChainService', () => {
);
expect(prisma.smsSubmitRecord.create).toHaveBeenCalledWith({
data: expect.objectContaining({ messageRecordId: 'record-1', channelId: 'channel-1', submitStatus: 'queued' }),
data: expect.objectContaining({
messageRecordId: 'record-1',
channelId: 'channel-1',
channelGroupId: 'group-1',
channelGroupName: '默认通道组',
submitStatus: 'queued',
}),
});
expect(prisma.smsMessageRecord.update).toHaveBeenCalledWith({
where: { id: 'record-1' },