1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

Merge branch 'contextual-workflows' of github.com:Budibase/budibase into rename-workflow-automation

This commit is contained in:
mike12345567 2020-09-21 15:05:42 +01:00
commit 9d7710e371
2 changed files with 3 additions and 2 deletions

View file

@ -56,9 +56,9 @@ exports.create = async function(ctx) {
ctx.status = 200
ctx.message = "User created successfully."
ctx.userId = response._id
ctx.body = {
_rev: response.rev,
_id: user._id,
username,
name,
}

View file

@ -71,7 +71,8 @@ module.exports.run = async function({ inputs, instanceId }) {
await userController.create(ctx)
return {
response: ctx.body,
id: ctx.body._id,
// internal property not returned through the API
id: ctx.userId,
revision: ctx.body._rev,
success: ctx.status === 200,
}