Skip to content

Commit

Permalink
Merge branch 'feat/plh_module_list_item-highlighted-variant' of https…
Browse files Browse the repository at this point in the history
…://github.com/IDEMSInternational/parenting-app-ui into feat/plh_module_list_item-highlighted-variant
  • Loading branch information
jfmcquade committed Feb 25, 2025
2 parents bec9f03 + b2192c3 commit ac6b0e2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api",
"version": "1.6.0",
"version": "1.6.1",
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
Expand Down
6 changes: 6 additions & 0 deletions packages/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ import { AppModule } from "./app.module";
import { DBInstance } from "./db";
import { environment } from "./environment";
import { version } from "../package.json";
import { json, urlencoded } from "express";

async function bootstrap() {
// DB Bootstrap (could be managed outside repo)
await new DBInstance().setup();
// API Bootstrap (auto connects to DB)
const app = await NestFactory.create(AppModule);

// Configure body parser with increased payload size limits
app.use(json({ limit: "2mb" }));
app.use(urlencoded({ extended: true, limit: "2mb" }));

app.enableCors();
// Make available on reverse proxy path (e.g. /api)
// app.setGlobalPrefix(environment.API_BASE_PATH || "");
Expand Down
2 changes: 1 addition & 1 deletion packages/server/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
# context: ../../api
# dockerfile: Dockerfile
# target: prod-env
image: idems/apps-api:1.6.0
image: idems/apps-api:1.6.1
env_file:
- ../../api/.env
environment:
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/services/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class AuthService extends AsyncServiceBase {
const currentUserId = this.localStorageService.getProtected("APP_USER_ID");
const restoreProfiles = authEntries
.filter((v) => v.app_user_id !== currentUserId)
.sort((a, b) => (a.updatedAt > b.createdAt ? -1 : 1));
.sort((a, b) => (a.updatedAt > b.updatedAt ? -1 : 1));
this.restoreProfiles.set(restoreProfiles);
}

Expand Down

0 comments on commit ac6b0e2

Please sign in to comment.