Revert "fix: handle invalid input for shortcode properties"

This reverts commit 4dcb0afb18.
This commit is contained in:
Mir Arif Hasan
2023-11-06 21:08:44 +06:00
parent 4dcb0afb18
commit 23bb9bc3d1

View File

@@ -126,7 +126,7 @@ export class ShortcodeService implements UserDataHandler, OnModuleInit {
return E.left(SHORTCODE_INVALID_REQUEST_JSON);
const parsedProperties = stringToJson(properties);
if (E.isLeft(parsedProperties) || !parsedProperties.right)
if (E.isLeft(parsedProperties))
return E.left(SHORTCODE_INVALID_PROPERTIES_JSON);
const generatedShortCode = await this.generateUniqueShortCodeID();