diff --git a/src/app.service.ts b/src/app.service.ts index 50a2ef8351fbd21bdaabe758f1b696746626ed73..87189e48eac0b81f7f1124be2f4f6517cb7f0c16 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]; }