misc: used tx instead of knex

This commit is contained in:
Sheen Capadngan
2025-10-29 04:16:08 +08:00
parent 394f1ae2bb
commit 78510aee8e

View File

@@ -19,7 +19,7 @@ export async function up(knex: Knex): Promise<void> {
});
}
} finally {
await knex.raw(`SET statement_timeout = '${originalTimeout}'`);
await tx.raw(`SET statement_timeout = '${originalTimeout}'`);
}
});
}