1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

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

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 (