Revert "fix: handle invalid input for shortcode properties"
This reverts commit 4dcb0afb18.
This commit is contained in:
@@ -126,7 +126,7 @@ export class ShortcodeService implements UserDataHandler, OnModuleInit {
|
|||||||
return E.left(SHORTCODE_INVALID_REQUEST_JSON);
|
return E.left(SHORTCODE_INVALID_REQUEST_JSON);
|
||||||
|
|
||||||
const parsedProperties = stringToJson(properties);
|
const parsedProperties = stringToJson(properties);
|
||||||
if (E.isLeft(parsedProperties) || !parsedProperties.right)
|
if (E.isLeft(parsedProperties))
|
||||||
return E.left(SHORTCODE_INVALID_PROPERTIES_JSON);
|
return E.left(SHORTCODE_INVALID_PROPERTIES_JSON);
|
||||||
|
|
||||||
const generatedShortCode = await this.generateUniqueShortCodeID();
|
const generatedShortCode = await this.generateUniqueShortCodeID();
|
||||||
|
|||||||
Reference in New Issue
Block a user