Skip to content

Commit

Permalink
fix(case issue): Fix a place where a comparison was not working as in…
Browse files Browse the repository at this point in the history
…tended due to case.
  • Loading branch information
mdial89f committed Feb 21, 2024
1 parent 8c9c044 commit 5e4dbe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/api/handlers/packageActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
WithdrawPackage,
toggleWithdrawRaiEnabledSchema,
ToggleWithdrawRaiEnabled,
Authority,
} from "shared-types";
import { produceMessage } from "../libs/kafka";
import { response } from "../libs/handler";
Expand Down Expand Up @@ -121,7 +122,7 @@ export async function withdrawRai(body: RaiWithdraw, document: any) {
await transaction.begin();
// How we withdraw an RAI Response varies based on authority or not
// Medicaid is handled differently from the rest.
if (body.authority == "MEDICAID") {
if (body.authority.toLowerCase() == Authority.MED_SPA) {
// Set Received Date to null
await transaction.request().query(`
UPDATE SEA.dbo.RAI
Expand Down

0 comments on commit 5e4dbe1

Please sign in to comment.