Skip to content

Commit

Permalink
fix: Fixed set ephemeral value for group (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
moskoweb committed Jun 17, 2023
1 parent 0115766 commit 84c627d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/group/functions/setProperty.ts
Expand Up @@ -96,7 +96,8 @@ export async function setProperty(
value = 604800;
}

if ([0, 86400, 604800, 7776000].includes(value)) {
// If the value is different from those allowed
if (![0, 86400, 604800, 7776000].includes(value)) {
throw new WPPError(
'invalid_ephemeral_duration',
'Invalid ephemeral duration',
Expand Down

0 comments on commit 84c627d

Please sign in to comment.