This commit is contained in:
@@ -18,8 +18,6 @@ afterEach(async () => {
|
||||
|
||||
async function host(id: string, createdAt = epoch - 7 * 86_400_000) {
|
||||
const { db } = await import('../../src/lib/server/db/index.js');
|
||||
const { ensureHostSchema } = await import('../../src/lib/server/hosts/schema.js');
|
||||
ensureHostSchema(db());
|
||||
db()
|
||||
.prepare('INSERT INTO ec_hosts (id,name,created_at) VALUES (?,?,?)')
|
||||
.run(id, id, new Date(createdAt).toISOString());
|
||||
|
||||
Reference in New Issue
Block a user