Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
22f780cc6e
|
|||
|
e4e6734808
|
@@ -13,10 +13,10 @@ Docker compose:
|
|||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
fixed-api:
|
fixed-api:
|
||||||
## TODO: Add url for image
|
image: gitea.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
|
||||||
|
|||||||
@@ -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(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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(),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user