fix(cli): Account for unparseable string in JSON key migration (#3927)

 Account for unparseable string in JSON key migration
This commit is contained in:
Iván Ovejero
2022-08-23 17:13:48 +02:00
committed by GitHub
parent f22bd2805d
commit ab45898a69
2 changed files with 12 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ export namespace PinData {
export type New = { [nodeName: string]: INodeExecutionData[] };
export type FetchedWorkflow = { id: number; pinData: string | object };
export type FetchedWorkflow = { id: number; pinData: string | Old };
}
export function isObjectLiteral(maybeObject: unknown): maybeObject is { [key: string]: string } {