|
|
|
@ -56,7 +56,7 @@ func (u *UserService) Insert(name, email, password string) (int, error) {
|
|
|
|
|
|
|
|
|
|
|
|
lastId, err := result.LastInsertId()
|
|
|
|
lastId, err := result.LastInsertId()
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
slog.Debug("An error occured when retrieving insert result id.")
|
|
|
|
slog.Debug("An error occurred when retrieving insert result id.")
|
|
|
|
return 0, err
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
slog.Debug(fmt.Sprintf("Inserted new user. User pk: %d", int(lastId)))
|
|
|
|
slog.Debug(fmt.Sprintf("Inserted new user. User pk: %d", int(lastId)))
|
|
|
|
|