This commit is contained in:
Vins 2024-04-24 10:18:57 +02:00
parent 4a318674b8
commit cd101d2f11

View File

@ -125,7 +125,9 @@ export default class UserController extends ApiController {
const manageSubscriptionRules = RulesGroup.hydrateArray<RulesGroup>(manageSubscriptionRulesEntity, { strategy: "excludeAll" });
if(!manageSubscriptionRules[0]) return;
payload.rules = manageSubscriptionRules[0].rules!.map((rule) => rule.name) || [];
payload.rules = manageSubscriptionRules[0].rules!.map((rule) => rule.name) || [];
console.log(payload);
isSubscribed = true;
}