mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 09:14:54 +10:00
fix linting
This commit is contained in:
@@ -17,14 +17,14 @@ import type { GameModel } from "~/prisma/client/models";
|
|||||||
|
|
||||||
export function createGameImportTaskId(libraryId: string, libraryPath: string) {
|
export function createGameImportTaskId(libraryId: string, libraryPath: string) {
|
||||||
const text = `import:${libraryId}:${libraryPath}`;
|
const text = `import:${libraryId}:${libraryPath}`;
|
||||||
// base64 can contain "/" which breaks the URL. So we remove it
|
// 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) {
|
export function createVersionImportTaskId(gameId: string, versionName: string) {
|
||||||
const text = `import:${gameId}:${versionName}`;
|
const text = `import:${gameId}:${versionName}`;
|
||||||
// base64 can contain "/" which breaks the URL. So we remove it
|
// 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 {
|
class LibraryManager {
|
||||||
@@ -133,9 +133,9 @@ class LibraryManager {
|
|||||||
game: e,
|
game: e,
|
||||||
status: versions
|
status: versions
|
||||||
? {
|
? {
|
||||||
noVersions: e.versions.length == 0,
|
noVersions: e.versions.length == 0,
|
||||||
unimportedVersions: versions,
|
unimportedVersions: versions,
|
||||||
}
|
}
|
||||||
: ("offline" as const),
|
: ("offline" as const),
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user