Handle no developers on first time startup migration

This commit is contained in:
Rory Powell 2022-04-13 23:14:36 +01:00
parent bb4edf186e
commit 03c3ebbbbf
1 changed files with 1 additions and 1 deletions

View File

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