Skip to content

Commit

Permalink
feat: responseForm 매개변수 수정
Browse files Browse the repository at this point in the history
- message(string) -> data(any)
- any로 둔 이유 : 반환하는 것이 너무 다양해서 타입을 지정하기가 어려움
  • Loading branch information
soomanbaek authored and NaayoungKwon committed Nov 15, 2022
1 parent 814d329 commit f58e103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/utils/responseForm.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const responseForm = (statusCode: string, message: string) => {
export const responseForm = (statusCode: string, data: any) => {
return {
statusCode,
result: message,
result: data,
};
};

0 comments on commit f58e103

Please sign in to comment.