Format und type fixes

This commit is contained in:
Hendrik Belitz
2026-02-07 11:39:13 +01:00
parent 7d38db1ce1
commit a2fc4e4d34
2 changed files with 6 additions and 4 deletions
@@ -289,6 +289,7 @@ describe("ChannelService", () => {
agents: [mockAgent], agents: [mockAgent],
slotTemplates: [mockSlotTemplate], slotTemplates: [mockSlotTemplate],
archived: false, archived: false,
staffIds: [],
}); });
const result = await service.getChannelById("550e8400-e29b-41d4-a716-446655440000"); const result = await service.getChannelById("550e8400-e29b-41d4-a716-446655440000");
@@ -332,6 +333,7 @@ describe("ChannelService", () => {
agents: [mockAgent], agents: [mockAgent],
slotTemplates: [mockSlotTemplate], slotTemplates: [mockSlotTemplate],
archived: false, archived: false,
staffIds: [],
}, },
]; ];
+4 -4
View File
@@ -501,8 +501,8 @@ export class ChannelService {
.select({ staffId: tenantSchema.channelStaff.staffId }) .select({ staffId: tenantSchema.channelStaff.staffId })
.from(tenantSchema.channelStaff) .from(tenantSchema.channelStaff)
.where(eq(tenantSchema.channelStaff.channelId, channelId)); .where(eq(tenantSchema.channelStaff.channelId, channelId));
const staffIds = staffLinks.map(link => link.staffId); const staffIds = staffLinks.map((link) => link.staffId);
return { return {
...channel, ...channel,
@@ -601,8 +601,8 @@ export class ChannelService {
.select({ staffId: tenantSchema.channelStaff.staffId }) .select({ staffId: tenantSchema.channelStaff.staffId })
.from(tenantSchema.channelStaff) .from(tenantSchema.channelStaff)
.where(eq(tenantSchema.channelStaff.channelId, channelId)); .where(eq(tenantSchema.channelStaff.channelId, channelId));
const staffIds = staffLinks.map(link => link.staffId); const staffIds = staffLinks.map((link) => link.staffId);
const result = { const result = {
...channel, ...channel,