refactor(core): Continue moving typeorm operators to repositories (no-changelog) (#8186)

Follow-up to: #8163
This commit is contained in:
Iván Ovejero
2024-01-02 17:53:24 +01:00
committed by GitHub
parent 0ca2759d75
commit 40c1eeeddd
35 changed files with 341 additions and 354 deletions

View File

@@ -3,7 +3,6 @@ import { Service } from 'typedi';
import { CacheService } from './cache.service';
import type { WebhookEntity } from '@db/entities/WebhookEntity';
import type { IHttpRequestMethods } from 'n8n-workflow';
import type { DeepPartial } from 'typeorm';
type Method = NonNullable<IHttpRequestMethods>;
@@ -97,7 +96,7 @@ export class WebhookService {
return this.webhookRepository.insert(webhook);
}
createWebhook(data: DeepPartial<WebhookEntity>) {
createWebhook(data: Partial<WebhookEntity>) {
return this.webhookRepository.create(data);
}