refactor: moved queries to their own file

This commit is contained in:
Simeon Radivoev 2026-03-17 12:57:11 +02:00
parent 364bc9d0be
commit cf6fff6fac
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
83 changed files with 1107 additions and 852 deletions

View file

@ -165,7 +165,7 @@ export class InstallJob implements IJob
let bytesReceived = 0;
const progressStream = new Transform({
transform (chunk, encoding, callback)
transform (chunk, _, callback)
{
bytesReceived += chunk.length;
if (totalBytes > 0)

View file

@ -5,7 +5,7 @@ import { LoginJob } from "./login-job";
import TwitchLoginJob from "./twitch-login-job";
import UpdateStoreJob from "./update-store";
function registerJob<const Path extends string, TS, T extends { id: Path, dataSchema?: TS; }> (job: T, path: Path, dataSchema: TS)
function registerJob<const Path extends string, TS, T extends { id: Path, dataSchema?: TS; }> (_job: T, path: Path, dataSchema: TS)
{
return new Elysia().ws(path, {
body: z.discriminatedUnion('type', [
@ -64,7 +64,7 @@ function registerJob<const Path extends string, TS, T extends { id: Path, dataSc
{
(ws.data as any).cleanup.forEach((d: Function) => d());
},
message (ws, message)
message (_, message)
{
if (message.type === 'cancel')
{