Skip to content

Commit 50e9ea9

Browse files
fix: redefined constants
1 parent c5216bd commit 50e9ea9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pages/api/health.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RESPONSE_MESSAGES } from "@/constants";
1+
import { HTTP } from "@/constants";
22
import { db } from "@/db";
33
import { ApiRequest, ApiResponse } from "@/types/api";
44

@@ -16,7 +16,7 @@ const handler = async (req: ApiRequest, res: ApiResponse) => {
1616
} catch (error) {
1717
console.error(error);
1818
return res.status(500).json({
19-
error: RESPONSE_MESSAGES.INTERNAL_SERVER_ERROR,
19+
error: HTTP.message.INTERNAL_SERVER_ERROR,
2020
});
2121
}
2222
};

pages/api/v1/users/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RESPONSE_MESSAGES } from "@/constants";
1+
import { HTTP } from "@/constants";
22
import controllers from "@/controllers";
33
import { db } from "@/db";
44
import { ApiRequest, ApiResponse } from "@/types/api";
@@ -17,7 +17,7 @@ const handler = async (req: ApiRequest, res: ApiResponse) => {
1717
} catch (error) {
1818
console.error(error);
1919
return res.status(500).json({
20-
error: RESPONSE_MESSAGES.INTERNAL_SERVER_ERROR,
20+
error: HTTP.message.INTERNAL_SERVER_ERROR,
2121
});
2222
}
2323
};

0 commit comments

Comments
 (0)