feat(config): make resolver support null value to delete a

key.
This commit is contained in:
NanamiAdmin committed 2026-09-08 23:10:26 +08:00
1 parent 786f364743
commit 8b43e8b2ea
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ func RegisterFirstUser(username, password, level string) (int64, error) {
return 0, fmt.Errorf("failed to check existing users: %w", err)
}
if count > 0 {
return 0, errors.New("registration closed: users already exist")
return 0, ErrUsersExist
}
result, err := tx.Exec(