fix(api): check if admin user already exists when calling the /users/admin/init endpoint (#494)
This commit is contained in:
@@ -7,7 +7,8 @@ const (
|
||||
|
||||
// User errors.
|
||||
const (
|
||||
ErrUserNotFound = Error("User not found")
|
||||
ErrUserNotFound = Error("User not found")
|
||||
ErrAdminAlreadyInitialized = Error("Admin user already initialized")
|
||||
)
|
||||
|
||||
// Endpoint errors.
|
||||
|
||||
Reference in New Issue
Block a user