Styling consistency
parent
6ae46dfd77
commit
2adb70dd7e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue