Fixing some automation requirements.

This commit is contained in:
mike12345567 2024-12-13 17:10:05 +00:00
parent b976c57e1e
commit 6699b202b4
3 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ export async function run({
response: ctx.body, response: ctx.body,
id: ctx.body._id, id: ctx.body._id,
revision: ctx.body._rev, revision: ctx.body._rev,
success: ctx.status === 200, success: !!ctx.body._id,
} }
} catch (err) { } catch (err) {
return { return {

View File

@ -94,7 +94,7 @@ export async function run({
return { return {
response: ctx.body, response: ctx.body,
row: ctx.row, row: ctx.row,
success: ctx.status === 200, success: ctx.body.ok,
} }
} catch (err) { } catch (err) {
return { return {

View File

@ -166,7 +166,7 @@ export async function run({
response: ctx.message, response: ctx.message,
id: ctx.body._id, id: ctx.body._id,
revision: ctx.body._rev, revision: ctx.body._rev,
success: ctx.status === 200, success: !!ctx.body._id,
} }
} catch (err) { } catch (err) {
return { return {