Skip to content

Commit

Permalink
Fix typo, remove unnecessary service
Browse files Browse the repository at this point in the history
  • Loading branch information
GAsplund committed Nov 29, 2023
1 parent 45ed48b commit 5a8abd5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,6 @@ jobs:
name: Build docker container

runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
-
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/events/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import EventService from '@/services/eventService';
import { NextRequest, NextResponse } from 'next/server';

export const dynamic = 'forced-dynamic';
export const dynamic = 'force-dynamic';

export async function GET(request: NextRequest, ctx: { params?: unknown }) {
return NextResponse.json(await EventService.getAll());
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/news/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import NewsService from '@/services/newsService';
import { NextRequest, NextResponse } from 'next/server';

export const dynamic = 'forced-dynamic';
export const dynamic = 'force-dynamic';

export async function GET(request: NextRequest, ctx: { params?: unknown }) {
return NextResponse.json(await NewsService.getAll());
Expand Down

0 comments on commit 5a8abd5

Please sign in to comment.