diff --git a/utils/client-schedule.ts b/utils/client-schedule.ts index 90ac0ba..8f08fbb 100644 --- a/utils/client-schedule.ts +++ b/utils/client-schedule.ts @@ -70,7 +70,7 @@ export class ClientScheduleLocation extends ClientEntity { this.updatedAt = this.serverUpdatedAt; this.deleted = this.serverDeleted; this.name = this.serverName; - this.description = this.description; + this.description = this.serverDescription; } static create( @@ -457,7 +457,7 @@ export class ClientScheduleRole extends ClientEntity { this.updatedAt = this.serverUpdatedAt; this.deleted = this.serverDeleted; this.name = this.serverName; - this.description = this.description; + this.description = this.serverDescription; } static create( @@ -613,7 +613,7 @@ export class ClientScheduleShift extends ClientEntity { const wasModified = this.isModified(); this.serverUpdatedAt = DateTime.fromISO(api.updatedAt, opts); this.serverDeleted = false; - this.roleId = api.roleId; + this.serverRoleId = api.roleId; this.serverName = api.name; this.serverDescription = api.description ?? ""; this.serverSlotIds = new Set(api.slots.map(slot => slot.id));