mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 08:46:58 +02:00
ci: Fix intermittent build issue (#20460)
This commit is contained in:
parent
cfaf1270ca
commit
e67fac66f7
|
|
@ -956,11 +956,13 @@ export class SourceControlImportService {
|
|||
overriddenKeys.splice(overriddenKeys.indexOf(variable.key), 1);
|
||||
}
|
||||
try {
|
||||
// @ts-ignore Workaround for intermittent typecheck issue with _QueryDeepPartialEntity
|
||||
await this.variablesRepository.upsert({ ...variable }, ['id']);
|
||||
} catch (errorUpsert) {
|
||||
if (isUniqueConstraintError(errorUpsert as Error)) {
|
||||
this.logger.debug(`Variable ${variable.key} already exists, updating instead`);
|
||||
try {
|
||||
// @ts-ignore Workaround for intermittent typecheck issue with _QueryDeepPartialEntity
|
||||
await this.variablesRepository.update({ key: variable.key }, { ...variable });
|
||||
} catch (errorUpdate) {
|
||||
this.logger.debug(`Failed to update variable ${variable.key}, skipping`);
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ export class McpServerApiKeyService {
|
|||
label: API_KEY_LABEL,
|
||||
});
|
||||
|
||||
// @ts-ignore Workaround for intermittent typecheck issue with _QueryDeepPartialEntity
|
||||
await manager.insert(ApiKey, apiKeyEntity);
|
||||
|
||||
return await manager.findOneByOrFail(ApiKey, { apiKey });
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user