From 37cae32e8743ef08457a0fce84232a68bdba348b Mon Sep 17 00:00:00 2001 From: Acho Arnold Date: Fri, 8 Dec 2023 15:08:43 +0200 Subject: [PATCH] Fix nodejs version --- .github/workflows/ci.yml | 2 +- api/pkg/services/user_service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a581dab..52354690 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 18 - uses: pnpm/action-setup@v2 name: Install pnpm diff --git a/api/pkg/services/user_service.go b/api/pkg/services/user_service.go index 4276434e..5d15af10 100644 --- a/api/pkg/services/user_service.go +++ b/api/pkg/services/user_service.go @@ -324,7 +324,7 @@ func (service *UserService) UpdateSubscription(ctx context.Context, params *even user.SubscriptionID = ¶ms.SubscriptionID user.SubscriptionName = params.SubscriptionName - user.SubscriptionEndsAt = ¶ms.SubscriptionEndsAt + user.SubscriptionEndsAt = params.SubscriptionEndsAt user.SubscriptionRenewsAt = ¶ms.SubscriptionRenewsAt user.SubscriptionStatus = ¶ms.SubscriptionStatus