Skip to content

Commit

Permalink
Fixed capitalization for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRibcage committed Jun 26, 2024
1 parent 39e6170 commit 6961e05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/challenges-platform/services/reviews-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export const create = async (
export const convert = async (result: any): Promise<Result<Review, Error>> => {
let status: Status;
switch (result.status) {
case "approved":
case "APPROVED":
status = Status.APPROVED;
break;
case "rejected":
case "REJECTED":
status = Status.REJECTED;
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion test/challenges-platform/factories/review-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const reviewFactory = async ({
const s = submission || (await submissionFactory());
const b = body || "test review";

const statusString = st === Status.APPROVED ? "approved" : "rejected";
const statusString = st === Status.APPROVED ? "APPROVED" : "REJECTED";
const insertResult = await db
.insert(reviews)
.values({
Expand Down

0 comments on commit 6961e05

Please sign in to comment.