fix entitlement validation when client doesn't exist

This commit is contained in:
nicktrn
2025-04-29 21:09:48 +01:00
parent d6dfc661d4
commit b13d8b70c2
@@ -46,7 +46,7 @@ export class DefaultTriggerTaskValidator implements TriggerTaskValidator {
const result = await getEntitlement(environment.organizationId);
if (!result || result.hasAccess === false) {
if (result && result.hasAccess === false) {
return {
ok: false,
error: new OutOfEntitlementError(),