Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 3aede82

Browse files
committed
fix(build): fix auth, adjust docker-compose, change version from v4 to v1
1 parent a247bd3 commit 3aede82

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,12 @@ services:
33
nats:
44
image: nats:2.8
55
ports:
6-
- "4222:4222"
6+
- "4222:4222"
7+
database:
8+
image: mongo:5
9+
ports:
10+
- "27018:27017"
11+
volumes:
12+
- data:/data/db
13+
volumes:
14+
data:

src/auth/auth.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function Auth() {
1515
);
1616
}
1717

18-
export const AuthUser = createParamDecorator<unknown, unknown, User>(
18+
export const AuthUser = createParamDecorator(
1919
(data: unknown, ctx: ExecutionContext) => {
2020
const request = ctx.switchToHttp().getRequest();
2121
return request.user;

src/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const port = +(process.env.PORT || 3000);
22

33
export const environment = {
4-
version: process.env.API_VERSION || 'v4',
4+
version: process.env.API_VERSION || 'v1',
55
port,
66
baseUrl: process.env.BASE_URL || `http://localhost:${port}`,
77
mongo: {

0 commit comments

Comments
 (0)