Merge branch 'rename-workflow-automation' of github.com:Budibase/budibase into async-workflow-blocks
This commit is contained in:
commit
fdc653add8
|
@ -56,9 +56,9 @@ exports.create = async function(ctx) {
|
||||||
|
|
||||||
ctx.status = 200
|
ctx.status = 200
|
||||||
ctx.message = "User created successfully."
|
ctx.message = "User created successfully."
|
||||||
|
ctx.userId = response._id
|
||||||
ctx.body = {
|
ctx.body = {
|
||||||
_rev: response.rev,
|
_rev: response.rev,
|
||||||
_id: user._id,
|
|
||||||
username,
|
username,
|
||||||
name,
|
name,
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,8 @@ module.exports.run = async function({ inputs, instanceId }) {
|
||||||
await userController.create(ctx)
|
await userController.create(ctx)
|
||||||
return {
|
return {
|
||||||
response: ctx.body,
|
response: ctx.body,
|
||||||
id: ctx.body._id,
|
// internal property not returned through the API
|
||||||
|
id: ctx.userId,
|
||||||
revision: ctx.body._rev,
|
revision: ctx.body._rev,
|
||||||
success: ctx.status === 200,
|
success: ctx.status === 200,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue