(message: string)
| 345 | .map(x => ({ endpoint: x.endpoint, keys: { auth: x.auth, p256dh: x.p256dh } })); |
| 346 | } |
| 347 | public Log(message: string) { |
| 348 | return this.db |
| 349 | .prepare('INSERT INTO log (message) VALUES (@message)') |
| 350 | .run({ message }); |
| 351 | } |
| 352 | public FetchRecentLogs(fromTm: number, limit = -1): LogItem[] { |
| 353 | const stmt = |
| 354 | 'SELECT CAST(strftime(\'%s\', timestamp) AS INT) as timestamp, message \ |