This commit is contained in:
Rory Powell 2022-03-25 16:08:12 +00:00
parent 0a4b1eb552
commit 7db6075f82
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ exports.getBuildersCount = async () => {
const builders = await queryGlobalView(ViewNames.USER_BY_BUILDERS, {
include_docs: false,
})
return builders.total_rows
return builders.length
}
exports.saveUser = async (

View File

@ -135,7 +135,7 @@ export const fetch = async (ctx: any) => {
delete user.password
}
}
ctx.body = users
ctx.body = all
}
// called internally by app server user find