diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-17 19:35:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-17 21:10:18 +0900 |
| commit | 95dd5f0c346d10c9a9497daf88cd199ce71c8122 (patch) | |
| tree | 6d3621b22cc44d7e93bc6a46b300479619d240d2 /backend/db/query.sql.go | |
| parent | 48a70e06f54d81cdc6b0c22c2dcce8426b86decf (diff) | |
| download | phperkaigi-2025-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.gz phperkaigi-2025-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.zst phperkaigi-2025-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.go | 16 |
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 +} |
