Skip to content

Commit 5bd84c7

Browse files
committed
made fix for update
1 parent 5f00151 commit 5bd84c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms/forms-models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const removeForm = id => {
3737

3838
const updateForm = async (id, form) => {
3939
await db('forms')
40-
.where({ id: form.form_id })
40+
.where({ id: form.id })
4141
.update({ name: form.name })
4242
.update('updated_at', db.fn.now())
4343
return db('forms')

0 commit comments

Comments
 (0)