From 80521c42fbcfd6e5ec5be224dbe569285173ec5e Mon Sep 17 00:00:00 2001 From: Pawan k <128481755+kumarpawantarento@users.noreply.github.com> Date: Fri, 21 Apr 2023 19:28:01 +0530 Subject: [PATCH] Update app.service.ts --- src/app.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.service.ts b/src/app.service.ts index 50a2ef8..87189e4 100644 --- a/src/app.service.ts +++ b/src/app.service.ts @@ -144,10 +144,10 @@ export class AppService { return res.recordset[0]; } - async getStudentByRollnumber(id: string) { + async getStudentByRollnumber(id: string, dob:string) { const db = await this.dbConnection.connect(); const res = await db.query( - `Select * from upsmfac_casa.dbo.Master_StudentProfile where RollNo='${id}'`, + `Select * from upsmfac_casa.dbo.Master_StudentProfile where RollNo='${id}' and DateOfBirth='${dob}'`, ); return res.recordset[0]; } -- GitLab