Skip to content

Commit

Permalink
fix generated id
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbt committed Sep 11, 2023
1 parent 80ef236 commit 76d5478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/update-policy/services/update-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const updatePolicy = async (
id: generatedId,
policyStatus: 'INSERTED',
});
const [createdId] = await createNewPolicy(generatedId, policy);
return { id: createdId, policyStatus: 'INSERTED' };
await createNewPolicy(generatedId, policy);
return { id: generatedId, policyStatus: 'INSERTED' };
}

const foundPolicyByid = await db('survey_responses').where({ id }).first();
Expand Down

0 comments on commit 76d5478

Please sign in to comment.