batch 2 day 2 and batch 2 api completed for mssql

This commit is contained in:
Kallesh B S 2025-04-10 17:14:18 +05:30
parent 9aedf7e38f
commit d497546725
2 changed files with 6 additions and 6 deletions

View File

@ -39,9 +39,9 @@ export class SpContactsController {
return this.spContactsService.setSPDefaultcontact(body);
}
// @ApiTags('SPContacts - Mssql')
// @Put('/UpdateSPContacts')
// updateSPContacts(@Body() body: UpdateSPContactsDTO) {
// return this.spContactsService.updateSPContacts(body);
// }
@ApiTags('SPContacts - Mssql')
@Put('/UpdateSPContacts')
updateSPContacts(@Body() body: UpdateSPContactsDTO) {
return this.spContactsService.updateSPContacts(body);
}
}

View File

@ -129,7 +129,7 @@ export class SpContactsService {
request.input('P_FAXNO', mssql.VarChar(4000), body.p_faxno);
request.input('P_EMAILADDRESS', mssql.VarChar(4000), body.p_emailaddress);
request.input('P_USER_ID', mssql.VarChar(4000), body.p_user_id);
const result = await request.execute('carnetsys.INSERTNEWREGION');
const result = await request.execute('carnetsys.UPDATESPCONTACTS');
return { data: result.recordset };
} catch (error) {