Use an epoch number for the clients online to fix query

This commit is contained in:
Owen 2025-08-13 20:26:50 -07:00
parent dc50190dc3
commit 285e24cdc7
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
3 changed files with 4 additions and 4 deletions

View file

@ -213,7 +213,7 @@ export const clients = sqliteTable("clients", {
megabytesIn: integer("bytesIn"),
megabytesOut: integer("bytesOut"),
lastBandwidthUpdate: text("lastBandwidthUpdate"),
lastPing: text("lastPing"),
lastPing: integer("lastPing"),
type: text("type").notNull(), // "olm"
online: integer("online", { mode: "boolean" }).notNull().default(false),
// endpoint: text("endpoint"),