mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Continue moving typeorm operators to repositories (no-changelog) (#8186)
Follow-up to: #8163
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user