chore: fixed issue with updateSharedRequest method

This commit is contained in:
Balu Babu
2023-11-03 13:10:25 +05:30
parent 0be35633cf
commit 2e396b3402

View File

@@ -230,7 +230,7 @@ export class SharedRequestService implements UserDataHandler, OnModuleInit {
if (!updatedProps) return E.left(SHARED_REQUEST_PROPERTIES_NOT_FOUND);
const parsedProperties = stringToJson(updatedProps);
if (E.isLeft(parsedProperties))
if (E.isLeft(parsedProperties) || !parsedProperties.right)
return E.left(SHARED_REQUEST_INVALID_PROPERTIES_JSON);
try {