@@ -17,9 +17,9 @@ export class CalculateScoreService {
1717 const calRegis = await this . calculateRegisScore ( appId ) . catch ( ( e ) => {
1818 throw e ;
1919 } ) ;
20- // const calAcademic = await this.calculateAcademicScore(appId).catch((e) => {
21- // throw e;
22- // });
20+ const calAcademic = await this . calculateAcademicScore ( appId ) . catch ( ( e ) => {
21+ throw e ;
22+ } ) ;
2323 const calAcademicChaos = await this . calculateAcademicChaosScore ( appId ) . catch ( ( e ) => {
2424 throw e ;
2525 } ) ;
@@ -33,19 +33,28 @@ export class CalculateScoreService {
3333 } ,
3434 update : {
3535 std_regis_score : calRegis ,
36- // std_academic_score: calAcademic,
36+ std_academic_score : calAcademic ,
3737 std_academic_chaos_score : calAcademicChaos ,
3838 std_total_score : calTotal ,
3939 } ,
4040 create : {
4141 std_application_id : appId ,
4242 std_regis_score : calRegis ,
43- // std_academic_score: calAcademic,
43+ std_academic_score : calAcademic ,
4444 std_academic_chaos_score : calAcademicChaos ,
4545 std_total_score : calTotal ,
4646 } ,
4747 } ) ;
4848
49+ // const updateAcademicScore = await this.prisma.applicationTotalScore.update({
50+ // where: {
51+ // std_application_id: appId
52+ // },
53+ // data: {
54+ // std_academic_score: calAcademic
55+ // }
56+ // })
57+
4958 return updateTotalScore ;
5059 } catch ( e ) {
5160 this . logger . error ( e ) ;
0 commit comments