This commit is contained in:
@@ -5,7 +5,6 @@ import { EventEmitter } from 'node:events';
|
||||
import { createHash, randomBytes, randomUUID, timingSafeEqual } from 'node:crypto';
|
||||
import { isIP } from 'node:net';
|
||||
import { db } from '../db/index.js';
|
||||
import { ensureHostSchema } from './schema.js';
|
||||
import {
|
||||
successfulObservation,
|
||||
routineObservationSql,
|
||||
@@ -60,9 +59,7 @@ export function waitForHostWork(
|
||||
}
|
||||
const digest = (token: string) => createHash('sha256').update(token).digest('hex');
|
||||
function database() {
|
||||
const handle = db();
|
||||
ensureHostSchema(handle);
|
||||
return handle;
|
||||
return db();
|
||||
}
|
||||
type HostRow = {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user