Skip to content

Commit 310590b

Browse files
committed
chore: fix golang checks
1 parent 40e129b commit 310590b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

store/db/mysql/user_setting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ func (d *DB) GetUserSessionByID(ctx context.Context, sessionID string) (*store.U
6868
WHERE ` + "`key`" + ` = 'SESSIONS'
6969
AND JSON_SEARCH(value, 'one', ?, NULL, '$.sessions[*].sessionId') IS NOT NULL
7070
`
71-
71+
7272
var userID int32
7373
var sessionsJSON string
74-
74+
7575
err := d.db.QueryRowContext(ctx, query, sessionID).Scan(&userID, &sessionsJSON)
7676
if err != nil {
7777
return nil, err

store/db/postgres/user_setting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ func (d *DB) GetUserSessionByID(ctx context.Context, sessionID string) (*store.U
8585
WHERE session->>'sessionId' = $1
8686
)
8787
`
88-
88+
8989
var userID int32
9090
var sessionsJSON string
91-
91+
9292
err := d.db.QueryRowContext(ctx, query, sessionID).Scan(&userID, &sessionsJSON)
9393
if err != nil {
9494
return nil, err

store/db/sqlite/user_setting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ func (d *DB) GetUserSessionByID(ctx context.Context, sessionID string) (*store.U
8484
WHERE json_extract(session.value, '$.sessionId') = ?
8585
)
8686
`
87-
87+
8888
var userID int32
8989
var sessionsJSON string
90-
90+
9191
err := d.db.QueryRowContext(ctx, query, sessionID).Scan(&userID, &sessionsJSON)
9292
if err != nil {
9393
return nil, err

0 commit comments

Comments
 (0)