@@ -21,8 +21,7 @@ export interface CreateUserAlbaScheduleRepoInput {
2121}
2222
2323export class UserAlbaScheduleRepository {
24-
25- async listByUserId ( userId : string , opts : { month ?: string } ) {
24+ async listByUserId ( userId : string , opts : { month ?: string } ) {
2625 const userIdBin = uuidToBin ( userId ) ;
2726
2827 return prisma . user_alba_schedule . findMany ( {
@@ -42,7 +41,7 @@ export class UserAlbaScheduleRepository {
4241 } ) ;
4342 }
4443
45- async findDetailByIdAndUserId ( userId : string , scheduleId : string ) {
44+ async findDetailByIdAndUserId ( userId : string , scheduleId : string ) {
4645 const userIdBin = uuidToBin ( userId ) ;
4746 const scheduleIdBin = uuidToBin ( scheduleId ) ;
4847
@@ -72,7 +71,7 @@ export class UserAlbaScheduleRepository {
7271 user_id : uuidToBin ( userId ) ,
7372
7473 workplace : input . workplace ?? null ,
75- workplace_name : input . workplace_name ?? null ,
74+ workplace_name : input . workplace_name ?? null ,
7675 workplace_color : input . workplace_color ?? null ,
7776 work_date : input . work_date ?? null ,
7877 work_time : input . work_time ?? null ,
@@ -116,7 +115,7 @@ export class UserAlbaScheduleRepository {
116115 user_id : userIdBin ,
117116 workplace : input . workplace ?? null ,
118117 workplace_name : input . workplace_name ?? null ,
119- workplace_color : input . workplace_color ?? null ,
118+ workplace_color : input . workplace_color ?? '#EF4444' ,
120119 work_date : input . work_date ?? null ,
121120 work_time : input . work_time ?? null ,
122121 day_of_week : input . day_of_week ?? null ,
0 commit comments