Compare commits

...

2 Commits

2 changed files with 9 additions and 3 deletions
+7 -2
View File
@@ -4,6 +4,7 @@
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true,
"watchAssets": true,
"assets": [
{
"include": "../assets/**",
@@ -12,9 +13,13 @@
},
{
"include": "../prisma/**",
"outDir": "dist/prisma",
"watchAssets": false
"outDir": "dist/prisma"
},
{
"include": "./generated/**",
"outDir": "./dist"
}
]
}
}
+2 -1
View File
@@ -27,7 +27,7 @@ export class AppController {
constructor(
private prisma: PrismaService,
private socketService: AppGetaway,
) {}
) { }
@Get('candidates')
async getCandidateList() {
@@ -83,6 +83,7 @@ export class AppController {
createdAt: new Date(),
},
});
savedCandidate.profileImage = `${process.env.HOST_URL as string}/uploads/${savedCandidate.profileImage}`;
this.socketService.onAddCandidate(savedCandidate);
return savedCandidate;