account for empty user id in automations

This commit is contained in:
Martin McKeaveney 2021-04-15 21:34:03 +01:00
parent 508730db6b
commit 201b26059c
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ context("Create Bindings", () => {
addSettingBinding("text", "Current User._id") addSettingBinding("text", "Current User._id")
cy.getComponent(componentId).should( cy.getComponent(componentId).should(
"have.text", "have.text",
`ro_ta_users_us_test@test.com` `ro_ta_users_test@test.com`
) )
}) })
}) })

View File

@ -150,7 +150,7 @@ exports.save = async function(ctx) {
// this returns the table and row incase they have been updated // this returns the table and row incase they have been updated
const dbTable = await db.get(inputs.tableId) const dbTable = await db.get(inputs.tableId)
let { table, row } = inputProcessing(ctx.user, dbTable, inputs) let { table, row } = inputProcessing(ctx.user || {}, dbTable, inputs)
const validateResult = await validate({ const validateResult = await validate({
row, row,
table, table,