Styling consistency

oauth2
maru 2024-04-25 15:11:26 -04:00
parent 6ae46dfd77
commit 2adb70dd7e
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ func FetchAccountKeySaltFromUsername(username string) ([]byte, []byte, error) {
return key, salt, nil return key, salt, nil
} }
func FetchTrainerIds(uuid []byte) (trainerId int, secretId int, err error) { func FetchTrainerIds(uuid []byte) (trainerId, secretId int, err error) {
err = handle.QueryRow("SELECT trainerId, secretId FROM accounts WHERE uuid = ?", uuid).Scan(&trainerId, &secretId) err = handle.QueryRow("SELECT trainerId, secretId FROM accounts WHERE uuid = ?", uuid).Scan(&trainerId, &secretId)
if err != nil { if err != nil {
return 0, 0, err return 0, 0, err
@ -184,7 +184,7 @@ func FetchTrainerIds(uuid []byte) (trainerId int, secretId int, err error) {
return trainerId, secretId, nil return trainerId, secretId, nil
} }
func UpdateTrainerIds(trainerId int, secretId int, uuid []byte) error { func UpdateTrainerIds(trainerId, secretId int, uuid []byte) error {
_, err := handle.Exec("UPDATE accounts SET trainerId = ?, secretId = ? WHERE uuid = ?", trainerId, secretId, uuid) _, err := handle.Exec("UPDATE accounts SET trainerId = ?, secretId = ? WHERE uuid = ?", trainerId, secretId, uuid)
if err != nil { if err != nil {
return err return err