Skip to content

Commit 8c554d3

Browse files
committed
fix: expired=true
1 parent eccb24b commit 8c554d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/sql/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (d *SqlDb) GetSession(userID int, sessionID int) (session db.Session, err e
6161
}
6262

6363
func (d *SqlDb) ExpireSession(userID int, sessionID int) error {
64-
res, err := d.exec("update session set expired=1 where id=? and user_id=?", sessionID, userID)
64+
res, err := d.exec("update session set expired=true where id=? and user_id=?", sessionID, userID)
6565

6666
return validateMutationResult(res, err)
6767
}

0 commit comments

Comments
 (0)