mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
fix: type errors and lint failures from merged plugin prs
This commit is contained in:
1 parent
9b690b9935
commit
f4c9090b88
8 files changed
+14
-11
No files matched your search
@@ -92,14 +92,13 @@ export async function startServer(
|
||||
},
|
||||
});
|
||||
const refs = await db.database.refs();
|
||||
db.database.refs = async () =>
|
||||
({
|
||||
...refs,
|
||||
hosts: sqliteTable("ssh_data", {
|
||||
id: integer("id").primaryKey(),
|
||||
syncId: text("sync_id"),
|
||||
}),
|
||||
}) as Awaited<ReturnType<typeof db.database.refs>>;
|
||||
db.database.refs = (async () => ({
|
||||
...(refs as object),
|
||||
hosts: sqliteTable("ssh_data", {
|
||||
id: integer("id").primaryKey(),
|
||||
syncId: text("sync_id"),
|
||||
}),
|
||||
})) as typeof db.database.refs;
|
||||
for (const user of options.users ?? ["alice", "bob", "carol"]) {
|
||||
db.sqlite
|
||||
.prepare("INSERT INTO users (id, username, is_admin) VALUES (?, ?, ?)")
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/// <reference types="vite/client" />
|
||||
import ts from "typescript";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import roomSource from "../../src/frontend/CollabRoomTab.tsx?raw";
|
||||
|
||||
Reference in new issue
Block a user