Small fixes (#141)

* fix: save task as Json rather than string

* fix: pull objects before creating game in database

* fix: strips relative dirs from version information

* fix: #132

* fix: lint

* fix: news object ids and small tweaks

* fix: notification styling errors

* fix: lint
This commit is contained in:
DecDuck
2025-07-20 14:56:15 +10:00
committed by GitHub
parent 661dcf86a8
commit 45848d175e
14 changed files with 57 additions and 91 deletions

View File

@ -197,8 +197,8 @@ export class MetadataHandler {
{},
["internal:read"],
wrapTaskContext(context, {
min: 63,
max: 100,
min: 60,
max: 95,
prefix: "[object import] ",
}),
);
@ -227,6 +227,13 @@ export class MetadataHandler {
context?.progress(60);
logger.info(`Successfully fetched all metadata.`);
logger.info(`Importing objects...`);
await pullObjects();
progress(95);
await prisma.game.create({
data: {
id: gameId,
@ -262,12 +269,6 @@ export class MetadataHandler {
},
});
progress(63);
logger.info(`Successfully fetched all metadata.`);
logger.info(`Importing objects...`);
await pullObjects();
logger.info(`Finished game import.`);
},
});