Skip to content

Commit

Permalink
fix: redefined constants
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatmittal61 committed Jun 13, 2024
1 parent c5216bd commit 50e9ea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pages/api/health.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RESPONSE_MESSAGES } from "@/constants";
import { HTTP } from "@/constants";
import { db } from "@/db";
import { ApiRequest, ApiResponse } from "@/types/api";

Expand All @@ -16,7 +16,7 @@ const handler = async (req: ApiRequest, res: ApiResponse) => {
} catch (error) {
console.error(error);
return res.status(500).json({
error: RESPONSE_MESSAGES.INTERNAL_SERVER_ERROR,
error: HTTP.message.INTERNAL_SERVER_ERROR,
});
}
};
Expand Down
4 changes: 2 additions & 2 deletions pages/api/v1/users/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RESPONSE_MESSAGES } from "@/constants";
import { HTTP } from "@/constants";
import controllers from "@/controllers";
import { db } from "@/db";
import { ApiRequest, ApiResponse } from "@/types/api";
Expand All @@ -17,7 +17,7 @@ const handler = async (req: ApiRequest, res: ApiResponse) => {
} catch (error) {
console.error(error);
return res.status(500).json({
error: RESPONSE_MESSAGES.INTERNAL_SERVER_ERROR,
error: HTTP.message.INTERNAL_SERVER_ERROR,
});
}
};
Expand Down

0 comments on commit 50e9ea9

Please sign in to comment.