mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
chore(core): Expose owner information for environment changes (#16466)
Co-authored-by: Guillaume Jacquart <jacquart.guillaume@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@ import { SourceControlService } from '@/environments.ee/source-control/source-co
|
||||
import type { ExportableCredential } from '@/environments.ee/source-control/types/exportable-credential';
|
||||
import type { ExportableFolder } from '@/environments.ee/source-control/types/exportable-folders';
|
||||
import type { ExportableWorkflow } from '@/environments.ee/source-control/types/exportable-workflow';
|
||||
import type { ResourceOwner } from '@/environments.ee/source-control/types/resource-owner';
|
||||
import type { RemoteResourceOwner } from '@/environments.ee/source-control/types/resource-owner';
|
||||
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
||||
import { ForbiddenError } from '@/errors/response-errors/forbidden.error';
|
||||
import { EventService } from '@/events/event.service';
|
||||
@@ -68,7 +68,7 @@ function toExportableCredential(
|
||||
cred: CredentialsEntity,
|
||||
owner: Project | User,
|
||||
): ExportableCredential {
|
||||
let resourceOwner: ResourceOwner;
|
||||
let resourceOwner: RemoteResourceOwner;
|
||||
|
||||
if (owner instanceof Project) {
|
||||
resourceOwner = {
|
||||
@@ -97,7 +97,7 @@ function toExportableWorkflow(
|
||||
owner: Project | User,
|
||||
versionId?: string,
|
||||
): ExportableWorkflow {
|
||||
let resourceOwner: ResourceOwner;
|
||||
let resourceOwner: RemoteResourceOwner;
|
||||
|
||||
if (owner instanceof Project) {
|
||||
resourceOwner = {
|
||||
|
||||
Reference in New Issue
Block a user