mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Fix typeorm .save usage (no-changelog) (#8678)
This commit is contained in:
@@ -71,10 +71,13 @@ export class VariablesService {
|
||||
this.validateVariable(variable);
|
||||
|
||||
void Container.get(InternalHooks).onVariableCreated({ variable_type: variable.type });
|
||||
const saveResult = await this.variablesRepository.save({
|
||||
...variable,
|
||||
id: generateNanoId(),
|
||||
});
|
||||
const saveResult = await this.variablesRepository.save(
|
||||
{
|
||||
...variable,
|
||||
id: generateNanoId(),
|
||||
},
|
||||
{ transaction: false },
|
||||
);
|
||||
await this.updateCache();
|
||||
return saveResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user