Skip to content

Commit

Permalink
feat(cron): add daily event cleaner endpoint ⏰ (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Lilleby <[email protected]>
  • Loading branch information
an2n and Anton Lilleby authored Jul 25, 2024
1 parent 95300dc commit 5a9b321
Show file tree
Hide file tree
Showing 15 changed files with 6,260 additions and 4,141 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sanity-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('studio/**/pnpm-lock.yaml') }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('studio/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,20 @@ For å kjøre koden:
2. Installer dependencies:

```bash
cd capra-web
cd capra-web/app
pnpm install

cd capra-web/studio
pnpm install
```

3. Start dev serverene:

```bash
cd capra-web/app
pnpm dev

cd capra-web/studio
pnpm dev
```

Expand Down Expand Up @@ -130,6 +137,10 @@ vercel deploy

SvelteKit templaten [sanity-template-sveltekit-clean](https://github.com/sanity-io/sanity-template-sveltekit-clean) har en eslint konfigurasjon som ikke funker. Har prøvd å oppgradere til eslint 9 med flatconfig fra denne [issuen](https://github.com/sveltejs/eslint-plugin-svelte/issues/732). 👷 Det er en del lint-errors som må undersøkes.

### CRON

CRON jobben "daily-event-cleaner" kjører daglig i vercel for å finne arrangementer som ble avsluttet for mer enn 7 dager siden. Sletter deretter database arrangementer, deltagerinformasjonen og matpreferanser for å sikre samsvar med GDPR regelverket. Sanity arrangementet beholdes.

## Supabase

Supabase Postgres database kan konfigures fra [https://supabase.com/dashboard/project/<project-id>](https://supabase.com/dashboard/project/<project-id>).
Expand Down
7 changes: 4 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "vite build",
"preview": "vite preview",
"lint": "eslint 'src/**/*.{js,ts,svelte}'",
"format": "prettier . --write ."
"format": "prettier . --write .",
"prepare": "svelte-kit sync"
},
"dependencies": {
"@auth/core": "^0.34.1",
Expand All @@ -16,7 +17,7 @@
"@sanity/image-url": "^1.0.2",
"@sanity/svelte-loader": "^1.11.32",
"@sanity/visual-editing": "^2.1.5",
"@supabase/supabase-js": "^2.44.0",
"@supabase/supabase-js": "^2.44.4",
"date-fns": "^3.6.0",
"globals": "^15.8.0",
"groq": "^3.52.1",
Expand Down Expand Up @@ -55,7 +56,7 @@
"sveltekit-rate-limiter": "^0.5.1",
"sveltekit-superforms": "^2.16.1",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.2",
"typescript": "^5.5.4",
"typescript-eslint": "^7.17.0",
"vite": "^5.3.1"
},
Expand Down
Loading

1 comment on commit 5a9b321

@vercel
Copy link

@vercel vercel bot commented on 5a9b321 Jul 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.