MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / update

Method update

lib/models/user.ts:189–201  ·  view source on GitHub ↗
(session: UserSession)

Source from the content-addressed store, hash-verified

187 }
188
189 static async update(session: UserSession) {
190 await db.query(
191 sql`UPDATE "bewcloud_user_sessions" SET
192 "expires_at" = $2,
193 "last_seen_at" = $3
194 WHERE "id" = $1`,
195 [
196 session.id,
197 session.expires_at,
198 session.last_seen_at,
199 ],
200 );
201 }
202
203 static async delete(sessionId: string) {
204 await db.query(

Callers

nothing calls this directly

Calls 1

queryMethod · 0.80

Tested by

no test coverage detected