Skip to content

Commit

Permalink
fix: allow edit split units
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jul 19, 2022
1 parent 2e2be59 commit e9d1434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/staging.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const editRecord = async (req, res) => {
await assertStagingRecordExists(req.body.uuid);

await Staging.update(
{ data: JSON.stringify([req.body.data]) },
{ data: JSON.stringify(_.flatten([req.body.data])) },
{ where: { uuid: req.body.uuid } },
);

Expand Down

0 comments on commit e9d1434

Please sign in to comment.