Skip to content

Commit

Permalink
SK-1621: fix connections validation
Browse files Browse the repository at this point in the history
  • Loading branch information
“amith-skyflow” committed Nov 4, 2024
1 parent 7ba9262 commit f4f3017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/validations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ function isStringKeyValueMap(obj: any): obj is StringKeyValueMapType {
}

for (const key in obj) {
if (typeof key !== 'string' || typeof obj[key] !== 'string') {
if (typeof key !== 'string' || (typeof obj[key] !== 'object' && typeof obj[key] !== 'string')) {
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/vault/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface queryResponseType {
}

export interface StringKeyValueMapType {
[key: string]: string;
[key: string]: object | string;
}

export interface tokenizeRequestType {
Expand Down

0 comments on commit f4f3017

Please sign in to comment.