feat(config): make resolver support null value to delete a
key.
This commit is contained in:
1 parent
2a1aa3d4ab
commit
292e879515
3 files changed
+51
-2
No files matched your search
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user