chore: Minor changes

This commit is contained in:
2026-07-20 18:36:09 +02:00
parent 04f92dc0ce
commit e4e6734808
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -13,10 +13,10 @@ Docker compose:
```yaml ```yaml
services: services:
fixed-api: fixed-api:
## TODO: Add url for image image: gitea.local.jzitnik.dev/jzitnik/fixed-smile-api:latest
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3000:3000" - '3000:3000'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- REGISTRATION_DISABLED=false # Disabling registration - REGISTRATION_DISABLED=false # Disabling registration
+1 -1
View File
@@ -83,7 +83,7 @@ export class SafeZonesService {
if (!user) throw new NotFoundException('User not found'); if (!user) throw new NotFoundException('User not found');
return { return {
Enabled: user.SafeZoneEnabled, Enabled: user.SafeZoneEnabled,
LastUpdate: new Date(user.Created as any).toISOString(), LastUpdate: new Date(user.Created).toISOString(),
}; };
} }
+2 -2
View File
@@ -22,10 +22,10 @@ export class UsersService {
surname: user.surname, surname: user.surname,
TermsAndConditions: user.TermsAndConditions, TermsAndConditions: user.TermsAndConditions,
PrivacyPolicy: user.PrivacyPolicy, PrivacyPolicy: user.PrivacyPolicy,
Created: new Date(user.Created as any).toISOString(), Created: new Date(user.Created).toISOString(),
SafeZoneSettings: { SafeZoneSettings: {
Enabled: user.SafeZoneEnabled, Enabled: user.SafeZoneEnabled,
LastUpdate: new Date(user.Created as any).toISOString(), LastUpdate: new Date(user.Created).toISOString(),
}, },
}; };
} }