aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/db/query.sql.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-17 19:35:56 +0900
committernsfisis <nsfisis@gmail.com>2024-08-17 21:10:18 +0900
commit95dd5f0c346d10c9a9497daf88cd199ce71c8122 (patch)
tree6d3621b22cc44d7e93bc6a46b300479619d240d2 /backend/db/query.sql.go
parent48a70e06f54d81cdc6b0c22c2dcce8426b86decf (diff)
downloadiosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.gz
iosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.zst
iosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.zip
feat(backend): fetch user icon from fortee
Diffstat (limited to 'backend/db/query.sql.go')
-rw-r--r--backend/db/query.sql.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/backend/db/query.sql.go b/backend/db/query.sql.go
index 02e660a..35b7edd 100644
--- a/backend/db/query.sql.go
+++ b/backend/db/query.sql.go
@@ -584,3 +584,19 @@ func (q *Queries) UpdateGameState(ctx context.Context, arg UpdateGameStateParams
_, err := q.db.Exec(ctx, updateGameState, arg.GameID, arg.State)
return err
}
+
+const updateUserIconPath = `-- name: UpdateUserIconPath :exec
+UPDATE users
+SET icon_path = $2
+WHERE user_id = $1
+`
+
+type UpdateUserIconPathParams struct {
+ UserID int32
+ IconPath *string
+}
+
+func (q *Queries) UpdateUserIconPath(ctx context.Context, arg UpdateUserIconPathParams) error {
+ _, err := q.db.Exec(ctx, updateUserIconPath, arg.UserID, arg.IconPath)
+ return err
+}