Handle no developers on first time startup migration
This commit is contained in:
parent
2b0057d2af
commit
3018aaf078
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue