removed connection.close()

This commit is contained in:
Kallesh B S 2025-02-27 15:46:10 +05:30
parent 453932c258
commit 0b5859ed74
2 changed files with 25 additions and 16 deletions

View File

@ -37,6 +37,11 @@ GET http://localhost:3000/oracle/GetAllServiceproviders
//GetSelectedServiceprovider
GET http://localhost:3000/oracle/GetSelectedServiceprovider
Content-Type: application/json
{
"p_spid":12
}
###
@ -87,10 +92,16 @@ Content-Type: application/json
"p_user_id": "user123"
}
###
//GetSPcontacts
GET http://localhost:3000/oracle/GetSPcontacts
Content-Type: application/json
{
"p_SPid":12
}
###
@ -119,7 +130,7 @@ Content-Type: application/json
//UpdateSPContacts
POST http://localhost:3000/oracle/InsertSPContacts
PUT http://localhost:3000/oracle/UpdateSPContacts
Content-Type: application/json
{

View File

@ -52,7 +52,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
async insertRegions(p_region: String, p_name: String) {
@ -94,7 +94,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
async updateRegions(p_regionID: Number, p_name: String) {
@ -136,7 +136,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
async insertNewServiceProvider(
@ -255,7 +255,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
@ -380,7 +380,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
@ -427,12 +427,10 @@ export class OracleService {
throw new Error('No cursor returned from the stored procedure');
}
return rows;
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
@ -488,7 +486,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
@ -543,7 +541,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
async insertSPContacts(
@ -630,7 +628,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
async updateSPContacts(
@ -717,7 +715,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
async getSPDefaultcontact(p_SPid: number) {
@ -772,7 +770,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
@ -805,7 +803,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
@ -837,7 +835,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
} finally { connection.close() }
} finally { }
}
}