chore: no sql generation for queries with side effects (#18301)

no sql generation for queries with side effects
This commit is contained in:
Mert
2025-05-14 23:34:22 -04:00
committed by GitHub
parent 6a4d21205f
commit 709a7b70aa
20 changed files with 48 additions and 167 deletions

View File

@@ -38,7 +38,6 @@ export class AuditRepository {
return records.map(({ entityId }) => entityId);
}
@GenerateSql({ params: [DummyValue.DATE] })
async removeBefore(before: Date): Promise<void> {
await this.db.deleteFrom('audit').where('createdAt', '<', before).execute();
}