Handle no developers on first time startup migration
This commit is contained in:
parent
bb4edf186e
commit
03c3ebbbbf
|
@ -180,7 +180,7 @@ exports.getBuildersCount = async () => {
|
||||||
const builders = await queryGlobalView(ViewNames.USER_BY_BUILDERS, {
|
const builders = await queryGlobalView(ViewNames.USER_BY_BUILDERS, {
|
||||||
include_docs: false,
|
include_docs: false,
|
||||||
})
|
})
|
||||||
return builders.length
|
return builders ? builders.length : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.saveUser = async (
|
exports.saveUser = async (
|
||||||
|
|
Loading…
Reference in New Issue