Simplify ORM (#6373)
This PR refactors the ORM-Manager to simplify and unify the datasource creation. I'm deprecating all usages if InjectWorkspaceDatasource and InjectWorkspaceRepository as we can't be sure they are up-to-date
This commit is contained in:
@ -44,9 +44,10 @@ export class BlocklistReimportCalendarEventsJob {
|
||||
return;
|
||||
}
|
||||
|
||||
const calendarChannelRepository = await this.twentyORMManager.getRepository(
|
||||
CalendarChannelWorkspaceEntity,
|
||||
);
|
||||
const calendarChannelRepository =
|
||||
await this.twentyORMManager.getRepository<CalendarChannelWorkspaceEntity>(
|
||||
'calendarChannel',
|
||||
);
|
||||
|
||||
await calendarChannelRepository.update(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user