mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 08:41:15 +10:00
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:
@ -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.`);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user