fix: ensure platform managed user has 1 schedule by default (#18719)

* fix: ensure managed user has 1 schedule

* chore: bump platform libraries
This commit is contained in:
Lauris Skraucis authored and GitHub committed 2025-01-20 09:11:26 +00:00
1 parent 02ef6dc934
commit bfeafaa21f
5 files changed
+6005 -84

No files matched your search

@@ -29,4 +29,8 @@ export class SchedulesRepositoryFixture {
async deleteAvailabilities(scheduleId: Schedule["id"]) {
return this.prismaWriteClient.availability.deleteMany({ where: { scheduleId } });
}
async getByUserId(userId: Schedule["userId"]) {
return this.prismaReadClient.schedule.findMany({ where: { userId } });
}
}