diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-02 14:47:02 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-02 14:47:02 -0500 |
commit | 9ab2e0044c8976b5669a069e61479354ca52980c (patch) | |
tree | a62f31483c0ee055fe83376f71971e01ddc02320 /db/session.go | |
parent | ad6a617c12d9b341be1357dcbb6ab58febe32ee8 (diff) |
add endpoint.go
Diffstat (limited to 'db/session.go')
-rw-r--r-- | db/session.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/db/session.go b/db/session.go index b8365ff..8590d2f 100644 --- a/db/session.go +++ b/db/session.go @@ -73,14 +73,6 @@ func extractSession(s Scanner) (Session, error) { } -func (p *Phlox) TouchSession(session Session) error { - now := time.Now().UTC() - nowStr := now.Format(time.RFC3339) - _, err := p.db.Exec("update sessions set modified=? where sessionid=?;", nowStr, session.Id) - return err -} - - func (p *Phlox) CheckSession(session Session) (bool, error) { row := p.db.QueryRow("select * from sessions where sessionid = ?", session.Id) session, err := extractSession(row) |