Fix events being created for system objects (#4694)

* Fix events being created for system objects

* move the condition above to avoid unnecessary db calls
This commit is contained in:
Weiko
2024-03-28 16:15:14 +01:00
committed by GitHub
parent 0cc0929bd0
commit 22d4af2e0c
2 changed files with 5 additions and 0 deletions

View File

@ -208,6 +208,7 @@ export class FieldMetadataService extends TypeOrmQueryService<FieldMetadataEntit
view[0].id
}')`,
);
await workspaceQueryRunner.commitTransaction();
} catch (error) {
await workspaceQueryRunner.rollbackTransaction();
throw error;