Merge pull request 'fix(auth): change logout behavior, now sends success code when logout request processed' (#11) from release/nicolas/v1.1 into main

Reviewed-on: Targo/targo_backend#11
This commit is contained in:
Nicolas 2026-02-05 15:01:13 -05:00
commit 48e1d763ea
3 changed files with 3 additions and 33 deletions

View File

@ -1,33 +0,0 @@
name: e2e
on:
push:
branches: [main]
pull_request:
jobs:
e2e:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dev # ou test
ports: ["5432:5432"]
options: >-
--health-cmd="pg_isready -U postgres -d dev"
--health-interval=5s
--health-timeout=5s
--health-retries=20
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/dev?schema=public
TZ: UTC
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: '18' }
- run: npm ci
- run: npx prisma migrate deploy
- run: npm run seed:all
- run: npm run test:e2e:ci

View File

@ -43,6 +43,8 @@ export class AuthController {
response.clearCookie('connect.sid', {
path: '/',
});
response.sendStatus(200);
})
}
}

View File

@ -0,0 +1 @@
GET http://localhost:3000/paid-time-off/totals