From 0a81c7e8a402b43e82103d5b7d26286f040d2227 Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Sat, 1 Apr 2023 20:45:11 +0100 Subject: [PATCH] Upgrade Deno & Dependencies + fix 1st of the month bug Fixes a bug where on the 1st of the month you couldn't get recurring expenses to be properly copied, after deleting all budgets --- .dvmrc | 2 +- .github/workflows/cron-check-subscriptions.yml | 2 +- .github/workflows/cron-cleanup.yml | 2 +- .github/workflows/tests.yml | 2 +- import_map.json | 2 +- public/ts/index.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.dvmrc b/.dvmrc index b0f3390..96cd6ee 100644 --- a/.dvmrc +++ b/.dvmrc @@ -1 +1 @@ -1.30.3 +1.32.1 diff --git a/.github/workflows/cron-check-subscriptions.yml b/.github/workflows/cron-check-subscriptions.yml index 8d5b0be..73c3b4c 100644 --- a/.github/workflows/cron-check-subscriptions.yml +++ b/.github/workflows/cron-check-subscriptions.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: denoland/setup-deno@v1 with: - deno-version: v1.30.3 + deno-version: v1.32.1 - env: POSTGRESQL_HOST: ${{ secrets.POSTGRESQL_HOST }} POSTGRESQL_USER: ${{ secrets.POSTGRESQL_USER }} diff --git a/.github/workflows/cron-cleanup.yml b/.github/workflows/cron-cleanup.yml index 08dfe14..837ed62 100644 --- a/.github/workflows/cron-cleanup.yml +++ b/.github/workflows/cron-cleanup.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: denoland/setup-deno@v1 with: - deno-version: v1.30.3 + deno-version: v1.32.1 - env: POSTGRESQL_HOST: ${{ secrets.POSTGRESQL_HOST }} POSTGRESQL_USER: ${{ secrets.POSTGRESQL_USER }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 85b996a..d869d77 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v3 - uses: denoland/setup-deno@v1 with: - deno-version: v1.30.3 + deno-version: v1.32.1 - run: docker-compose pull - uses: jpribyl/action-docker-layer-caching@v0.1.1 continue-on-error: true diff --git a/import_map.json b/import_map.json index 6d8ee46..b400a43 100644 --- a/import_map.json +++ b/import_map.json @@ -3,6 +3,6 @@ "/": "./", "./": "./", - "std/": "https://deno.land/std@0.168.0/" + "std/": "https://deno.land/std@0.180.0/" } } diff --git a/public/ts/index.ts b/public/ts/index.ts index fee39c7..5dcf587 100644 --- a/public/ts/index.ts +++ b/public/ts/index.ts @@ -240,7 +240,7 @@ document.addEventListener('app-loaded', async () => { // If this is for the current or next month and there are no budgets, create budgets based on the previous/current month. if (budgets.length === 0 && !isComingFromEmptyState) { const currentMonthDate = new Date(`${currentMonth}-15`); - currentMonthDate.setMonth(currentMonthDate.getMonth() + 1); + currentMonthDate.setMonth(currentMonthDate.getMonth()); const actualCurrentMonth = currentMonthDate.toISOString().substring(0, 7); const nextMonthDate = new Date();