feat: scope blacklists and paginate phone segments
This commit is contained in:
@@ -490,6 +490,7 @@ describe('SendChainService', () => {
|
||||
await expect(
|
||||
service.previewImport({
|
||||
tenantId: 'tenant-1',
|
||||
applicationId: 'app-1',
|
||||
content: 'phoneNumber,code\n13800000001,1234\n13800000001,1234\nbad,1234\n13800000003,1234\n13900000001,',
|
||||
requiredVariables: ['code'],
|
||||
}),
|
||||
@@ -507,6 +508,10 @@ describe('SendChainService', () => {
|
||||
]),
|
||||
}),
|
||||
);
|
||||
expect(prisma.enterpriseBlacklist.findMany).toHaveBeenCalledWith({
|
||||
where: { tenantId: 'tenant-1', applicationId: 'app-1', status: 'active' },
|
||||
select: { phoneNumber: true },
|
||||
});
|
||||
});
|
||||
|
||||
it('adds queued message jobs for a batch task', async () => {
|
||||
|
||||
Reference in New Issue
Block a user