From 9ab2e0044c8976b5669a069e61479354ca52980c Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 2 May 2023 14:47:02 -0500 Subject: add endpoint.go --- db/session.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'db/session.go') 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) -- cgit v1.2.1