Skip to content

Commit 80ee33c

Browse files
committed
fix(fria): remove version bump on snapshot save
Saving a snapshot should not increment the assessment version. The version number should reflect the current state, not count ahead of existing snapshots. Previously, saving 2 snapshots would show "Version 3" which was confusing since only 2 snapshots existed.
1 parent 24243ad commit 80ee33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Servers/controllers/fria.ctrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ export async function submitFria(req: Request, res: Response): Promise<Response>
741741

742742
await updateFriaQuery(
743743
friaId,
744-
{ status: FriaStatus.SUBMITTED, version: fria.version + 1 },
744+
{ status: FriaStatus.SUBMITTED },
745745
organizationId,
746746
userId,
747747
transaction

0 commit comments

Comments
 (0)