File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import { RESPONSE_MESSAGES } from "@/constants" ;
1
+ import { HTTP } from "@/constants" ;
2
2
import { db } from "@/db" ;
3
3
import { ApiRequest , ApiResponse } from "@/types/api" ;
4
4
@@ -16,7 +16,7 @@ const handler = async (req: ApiRequest, res: ApiResponse) => {
16
16
} catch ( error ) {
17
17
console . error ( error ) ;
18
18
return res . status ( 500 ) . json ( {
19
- error : RESPONSE_MESSAGES . INTERNAL_SERVER_ERROR ,
19
+ error : HTTP . message . INTERNAL_SERVER_ERROR ,
20
20
} ) ;
21
21
}
22
22
} ;
Original file line number Diff line number Diff line change 1
- import { RESPONSE_MESSAGES } from "@/constants" ;
1
+ import { HTTP } from "@/constants" ;
2
2
import controllers from "@/controllers" ;
3
3
import { db } from "@/db" ;
4
4
import { ApiRequest , ApiResponse } from "@/types/api" ;
@@ -17,7 +17,7 @@ const handler = async (req: ApiRequest, res: ApiResponse) => {
17
17
} catch ( error ) {
18
18
console . error ( error ) ;
19
19
return res . status ( 500 ) . json ( {
20
- error : RESPONSE_MESSAGES . INTERNAL_SERVER_ERROR ,
20
+ error : HTTP . message . INTERNAL_SERVER_ERROR ,
21
21
} ) ;
22
22
}
23
23
} ;
You can’t perform that action at this time.
0 commit comments