Skip to content

Commit

Permalink
Reset seed trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsilvestre committed Mar 8, 2024
1 parent cfbe6d7 commit bafc3f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ app = "kanjisense"
kill_signal = "SIGINT"
kill_timeout = 5
processes = [ ]
primary_region = "ams"

[env]
PORT = "8080"
Expand Down
16 changes: 8 additions & 8 deletions prisma/seedScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,34 +67,34 @@ export async function seed(prisma: PrismaClient) {
seedKanjisenseFigures(prisma, false),
);
await executeAndLogTime("seeding kanjisense active sound marks", () =>
seedKanjisenseActiveSoundMarks(prisma, true),
seedKanjisenseActiveSoundMarks(prisma, false),
);
await executeAndLogTime("seeding kanjisense figure badge props", () =>
seedKanjisenseFigureBadgeProps(prisma, true, false),
seedKanjisenseFigureBadgeProps(prisma, false, false),
);
await executeAndLogTime("seeding JMDict", () => seedJMDict(prisma));

await executeAndLogTime("seeding kanjisense figure readings", () =>
seedKanjisenseFigureReadings(prisma, true),
seedKanjisenseFigureReadings(prisma, false),
);

await executeAndLogTime("seeding kanjisense active sound mark values", () =>
seedKanjisenseActiveSoundMarkValues(prisma, true),
seedKanjisenseActiveSoundMarkValues(prisma, false),
);

await executeAndLogTime("seed figure images", () =>
seedFigureImages(prisma, true),
seedFigureImages(prisma, false),
);

await executeAndLogTime("seeding shuowen images", () =>
seedShuowenImages(prisma, true),
seedShuowenImages(prisma, false),
);
await executeAndLogTime("seeding glyph images", () =>
seedGlyphImages(prisma, true),
seedGlyphImages(prisma, false),
);

await executeAndLogTime("seeding kanjisense figure search properties", () =>
seedFigureSearchProperties(prisma, 100, true),
seedFigureSearchProperties(prisma, 100, false),
);

console.log(
Expand Down

0 comments on commit bafc3f7

Please sign in to comment.