refactor(core): Remove dead code that disabled auto-generated ids during import (no-changelog) (#9601)
This commit is contained in:
committed by
GitHub
parent
1a982d51b3
commit
3298914bc4
@@ -1,11 +0,0 @@
|
||||
import type { WorkflowEntity } from '@db/entities/WorkflowEntity';
|
||||
import type { CredentialsEntity } from '@db/entities/CredentialsEntity';
|
||||
import { getMetadataArgsStorage } from '@n8n/typeorm';
|
||||
|
||||
export const disableAutoGeneratedIds = (
|
||||
entityClass: typeof WorkflowEntity | typeof CredentialsEntity,
|
||||
): void => {
|
||||
const decoratorMetadata = getMetadataArgsStorage().generations;
|
||||
const index = decoratorMetadata.findIndex((metadata) => metadata.target === entityClass);
|
||||
decoratorMetadata.splice(index, 1);
|
||||
};
|
||||
Reference in New Issue
Block a user