mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-08-17 21:25:52 +02:00
Format und type fixes
This commit is contained in:
@@ -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: [],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user