Use structs lib to map models to DB. Fix #1266
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ func createAdminUser(ctx context.Context, ds model.DataStore, username, password
|
||||
Email: "",
|
||||
NewPassword: password,
|
||||
IsAdmin: true,
|
||||
LastLoginAt: &now,
|
||||
LastLoginAt: now,
|
||||
}
|
||||
err := ds.User(ctx).Put(&initialUser)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user