Fix inconsistencies between int and bool in db

This commit is contained in:
Jamie Curnow committed 2023-05-30 15:51:57 +10:00
1 parent 7edcb8e3cc
commit 98ff4a7dcc
7 files changed
+144 -152

No files matched your search

+2 -2
View File
@@ -69,8 +69,8 @@ func checkSetup() {
if db != nil {
db.Model(&user.Model{}).
Where("is_disabled = ?", 0).
Where("is_system = ?", 0).
Where("is_disabled = ?", false).
Where("is_system = ?", false).
Count(&count)
if count == 0 {