1
0
Fork 0
mirror of synced 2024-06-26 18:10:51 +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 2b0057d2af
commit 3018aaf078

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 (