Skip to content

Commit dedbb05

Browse files
committed
fix: 불필요한 변수 제거 및 회원가입 시 호출되는 api 내의 데이터 타입 추가
1 parent bdc7ed5 commit dedbb05

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

api/signup.api.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export type SignupPayload = {
66
nickname: string;
77
email: string;
88
password: string;
9+
streakDays: number;
10+
tilCount: number;
911
};
1012

1113
export async function signupWithEmail(p: SignupPayload) {
@@ -15,6 +17,8 @@ export async function signupWithEmail(p: SignupPayload) {
1517
nickname: p.nickname,
1618
email: p.email,
1719
createdAt: serverTimestamp(),
20+
streakDays: 0,
21+
tilCount: 0,
1822
});
1923
return cred.user;
2024
}

lib/home/profileService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export interface Profile {
77
email: string;
88
streakDays: number;
99
tilCount: number;
10-
dailyGoal: number;
1110
}
1211

1312
// 1. 유저 프로필 정보 가져오기

0 commit comments

Comments
 (0)