diff --git a/bun.lockb b/bun.lockb index d4af6cc..305a345 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index b35ab91..3952565 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "dependencies": { "@iarna/toml": "2.2.5", "@inquirer/prompts": "7.2.1", - "@ronin/compiler": "0.13.9", + "@ronin/compiler": "0.13.13", "@ronin/engine": "0.0.27", "chalk-template": "1.1.0", "get-port": "7.1.0", diff --git a/tests/fixtures/utils.ts b/tests/fixtures/utils.ts index aec555b..c4c8c55 100644 --- a/tests/fixtures/utils.ts +++ b/tests/fixtures/utils.ts @@ -37,19 +37,8 @@ export const prefillDatabase = async ( ): Promise => { const rootModelTransaction = new Transaction([{ create: { model: ROOT_MODEL } }]); - const triggers = models.flatMap( - (model) => - model.triggers?.flatMap((trigger) => ({ - alter: { model: model.slug, create: { trigger } }, - })) ?? [], - ); - const modelTransaction = new Transaction( - models - .map((model) => ({ create: { model } })) - // @ts-expect-error This is a temporay fix and will be removed as soon as create.model - // supports triggers. - .concat(triggers), + models.map((model) => ({ create: { model } })), ); await db.query([...rootModelTransaction.statements, ...modelTransaction.statements]);