fix linting

This commit is contained in:
FurbyOnSteroids
2025-08-16 13:04:13 +02:00
parent e4653b776c
commit 9cafaf5aad
+5 -5
View File
@@ -18,13 +18,13 @@ import type { GameModel } from "~/prisma/client/models";
export function createGameImportTaskId(libraryId: string, libraryPath: string) {
const text = `import:${libraryId}:${libraryPath}`;
// base64 can contain "/" which breaks the URL. So we remove it
return Buffer.from(text, 'utf8').toString('base64').replaceAll("/", "");
return Buffer.from(text, "utf8").toString("base64").replaceAll("/", "");
}
export function createVersionImportTaskId(gameId: string, versionName: string) {
const text = `import:${gameId}:${versionName}`;
// base64 can contain "/" which breaks the URL. So we remove it
return Buffer.from(text, 'utf8').toString('base64').replaceAll("/", "");
return Buffer.from(text, "utf8").toString("base64").replaceAll("/", "");
}
class LibraryManager {
@@ -133,9 +133,9 @@ class LibraryManager {
game: e,
status: versions
? {
noVersions: e.versions.length == 0,
unimportedVersions: versions,
}
noVersions: e.versions.length == 0,
unimportedVersions: versions,
}
: ("offline" as const),
};
}),