Skip to content

Commit 63738bb

Browse files
committed
log++
1 parent e6a5984 commit 63738bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/jobs/jobs.controller.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,9 +1301,18 @@ export class JobsController {
13011301
const userOrgId =
13021302
await this.userService.findOrgIdByMemberUserWallet(address);
13031303
if (userOrgId) {
1304+
this.logger.log(
1305+
`User org id ${userOrgId} found, checking subscription`,
1306+
);
13041307
const subscription = data(
13051308
await this.subscriptionService.getSubscriptionInfoByOrgId(userOrgId),
13061309
);
1310+
this.logger.log(`Subscription data: ${JSON.stringify(subscription)}`);
1311+
1312+
this.logger.log(
1313+
`Checking job promotion access: ${subscription?.canAccessService("jobPromotions")}`,
1314+
);
1315+
13071316
if (subscription?.canAccessService("jobPromotions")) {
13081317
await this.jobsService.handleJobPromotion(uuid);
13091318
await this.subscriptionService.recordMeteredServiceUsage(

0 commit comments

Comments
 (0)