Skip to content

Commit 1d59a7a

Browse files
committed
fix(user_alba_schedule_repository): 기본 색상 #EF4444로 변경
1 parent 398c6c4 commit 1d59a7a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/repository/user_alba_schedule_repository.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ export interface CreateUserAlbaScheduleRepoInput {
2121
}
2222

2323
export 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

Comments
 (0)