updated api according doc

This commit is contained in:
Kallesh B S 2025-03-21 12:02:50 +05:30
parent 3e0b4e5b97
commit e7670be834
6 changed files with 262 additions and 146 deletions

View File

@ -284,7 +284,7 @@ export class HomePageDataService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -372,7 +372,7 @@ export class HomePageDataService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}

View File

@ -71,7 +71,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -146,7 +146,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async CREATECARGORATE(body: CreateCargoRateDTO) {
@ -215,7 +215,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async CREATECFFEE(body: CreateCfFeeDTO) {
@ -290,7 +290,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -355,7 +355,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async CREATEEFFEE(body: CreateEfFeeDTO) {
@ -434,7 +434,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async CREATEFEECOMM(body: CreateFeeCommDTO) {
@ -494,7 +494,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -553,7 +553,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
@ -610,7 +610,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
@ -667,7 +667,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
@ -723,7 +723,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
@ -780,7 +780,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
@ -838,7 +838,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -863,19 +863,19 @@ export class ManageFeeService {
END;`,
{
P_FEECOMMID: {
val:body.p_fees_comm.P_FEECOMMID,
val: body.p_fees_comm.P_FEECOMMID,
type: oracledb.DB_TYPE_NUMBER
},
P_RATE: {
val:Number(body.p_fees_comm.P_RATE)|0,
val: Number(body.p_fees_comm.P_RATE) | 0,
type: oracledb.DB_TYPE_NUMBER
},
P_EFFDATE: {
val:body.p_fees_comm.P_EFFDATE,
val: body.p_fees_comm.P_EFFDATE,
type: oracledb.DB_TYPE_NVARCHAR
},
P_USERID: {
val:body.p_fees_comm.P_USERID,
val: body.p_fees_comm.P_USERID,
type: oracledb.DB_TYPE_NVARCHAR
},
P_CURSOR: {
@ -891,24 +891,24 @@ export class ManageFeeService {
if (result.outBinds && result.outBinds.P_CURSOR) {
let fres = await result.outBinds.P_CURSOR.getRows();
console.log("pcursor: ",fres);
console.log("pcursor: ", fres);
return fres
}
else{
else {
console.log("No cursor returned....");
return {error:"No cursor found"}
return { error: "No cursor found" }
}
} catch (err) {
console.error('Error fetching users: ', err);
return{error:err.message}
// throw new Error('Error fetching users');
return { error: err.message }
// return {error: err.message}
} finally { }
}
// get
async GETBASICFEERATES(P_SPID: Number) {
async GETBASICFEERATES(P_SPID: Number, P_ACTIVE_INACTIVE: string) {
let connection;
let rows = [];
try {
@ -920,13 +920,18 @@ export class ManageFeeService {
const result = await connection.execute(
`BEGIN
MANAGEFEE_SETUP_PKG.GETBASICFEERATES(:P_SPID,:p_cursor);
END;`,
MANAGEFEE_SETUP_PKG.GETBASICFEERATES(:P_SPID,:P_ACTIVE_INACTIVE,:p_cursor);
END;`,
{
P_SPID: {
val: P_SPID,
type: oracledb.DB_TYPE_NUMBER,
},
P_ACTIVE_INACTIVE: {
val: P_ACTIVE_INACTIVE,
type: oracledb.DB_TYPE_NVARCHAR,
},
p_cursor: {
type: oracledb.CURSOR,
dir: oracledb.BIND_OUT
@ -956,10 +961,10 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async GETBONDRATES(P_SPID: Number) {
async GETBONDRATES(P_SPID: Number, P_ACTIVE_INACTIVE: string) {
let connection;
let rows = [];
try {
@ -971,13 +976,17 @@ export class ManageFeeService {
const result = await connection.execute(
`BEGIN
MANAGEFEE_SETUP_PKG.GETBONDRATES(:P_SPID,:p_cursor);
END;`,
MANAGEFEE_SETUP_PKG.GETBONDRATES(:P_SPID,:P_ACTIVE_INACTIVE,:p_cursor);
END;`,
{
P_SPID: {
val: P_SPID,
type: oracledb.DB_TYPE_NUMBER,
},
P_ACTIVE_INACTIVE: {
val: P_ACTIVE_INACTIVE,
type: oracledb.DB_TYPE_NVARCHAR,
},
p_cursor: {
type: oracledb.CURSOR,
dir: oracledb.BIND_OUT
@ -1007,10 +1016,10 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async GETCARGORATES(P_SPID: Number) {
async GETCARGORATES(P_SPID: Number, P_ACTIVE_INACTIVE: string) {
let connection;
let rows = [];
try {
@ -1022,13 +1031,17 @@ export class ManageFeeService {
const result = await connection.execute(
`BEGIN
MANAGEFEE_SETUP_PKG.GETCARGORATES(:P_SPID,:p_cursor);
END;`,
MANAGEFEE_SETUP_PKG.GETCARGORATES(:P_SPID,:P_ACTIVE_INACTIVE,:p_cursor);
END;`,
{
P_SPID: {
val: P_SPID,
type: oracledb.DB_TYPE_NUMBER,
},
P_ACTIVE_INACTIVE: {
val: P_ACTIVE_INACTIVE,
type: oracledb.DB_TYPE_NVARCHAR,
},
p_cursor: {
type: oracledb.CURSOR,
dir: oracledb.BIND_OUT
@ -1058,10 +1071,10 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async GETCFFEERATES(P_SPID: Number) {
async GETCFFEERATES(P_SPID: Number, P_ACTIVE_INACTIVE: string) {
let connection;
let rows = [];
try {
@ -1073,13 +1086,17 @@ export class ManageFeeService {
const result = await connection.execute(
`BEGIN
MANAGEFEE_SETUP_PKG.GETCFFEERATES(:P_SPID,:p_cursor);
END;`,
MANAGEFEE_SETUP_PKG.GETCFFEERATES(:P_SPID,:P_ACTIVE_INACTIVE,:p_cursor);
END;`,
{
P_SPID: {
val: P_SPID,
type: oracledb.DB_TYPE_NUMBER,
},
P_ACTIVE_INACTIVE: {
val: P_ACTIVE_INACTIVE,
type: oracledb.DB_TYPE_NVARCHAR,
},
p_cursor: {
type: oracledb.CURSOR,
dir: oracledb.BIND_OUT
@ -1109,10 +1126,10 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async GETCSFEERATES(P_SPID: Number) {
async GETCSFEERATES(P_SPID: Number, P_ACTIVE_INACTIVE: string) {
let connection;
let rows = [];
try {
@ -1124,13 +1141,17 @@ export class ManageFeeService {
const result = await connection.execute(
`BEGIN
MANAGEFEE_SETUP_PKG.GETCSFEERATES(:P_SPID,:p_cursor);
END;`,
MANAGEFEE_SETUP_PKG.GETCSFEERATES(:P_SPID,:P_ACTIVE_INACTIVE,:p_cursor);
END;`,
{
P_SPID: {
val: P_SPID,
type: oracledb.DB_TYPE_NUMBER,
},
P_ACTIVE_INACTIVE: {
val: P_ACTIVE_INACTIVE,
type: oracledb.DB_TYPE_NVARCHAR,
},
p_cursor: {
type: oracledb.CURSOR,
dir: oracledb.BIND_OUT
@ -1160,10 +1181,10 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async GETEFFEERATES(P_SPID: Number) {
async GETEFFEERATES(P_SPID: Number, P_ACTIVE_INACTIVE: string) {
let connection;
let rows = [];
try {
@ -1175,13 +1196,17 @@ export class ManageFeeService {
const result = await connection.execute(
`BEGIN
MANAGEFEE_SETUP_PKG.GETEFFEERATES(:P_SPID,:p_cursor);
END;`,
MANAGEFEE_SETUP_PKG.GETEFFEERATES(:P_SPID,:P_ACTIVE_INACTIVE,:p_cursor);
END;`,
{
P_SPID: {
val: P_SPID,
type: oracledb.DB_TYPE_NUMBER,
},
P_ACTIVE_INACTIVE: {
val: P_ACTIVE_INACTIVE,
type: oracledb.DB_TYPE_NVARCHAR,
},
p_cursor: {
type: oracledb.CURSOR,
dir: oracledb.BIND_OUT
@ -1211,10 +1236,10 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
async GETFEECOMM(P_SPID: Number) {
async GETFEECOMM(P_SPID: Number, P_ACTIVE_INACTIVE: string) {
let connection;
let rows = [];
try {
@ -1226,13 +1251,17 @@ export class ManageFeeService {
const result = await connection.execute(
`BEGIN
MANAGEFEE_SETUP_PKG.GETFEECOMM(:P_SPID,:p_cursor);
END;`,
MANAGEFEE_SETUP_PKG.GETFEECOMM(:P_SPID,:P_ACTIVE_INACTIVE,:p_cursor);
END;`,
{
P_SPID: {
val: P_SPID,
type: oracledb.DB_TYPE_NUMBER,
},
P_ACTIVE_INACTIVE: {
val: P_ACTIVE_INACTIVE,
type: oracledb.DB_TYPE_NVARCHAR,
},
p_cursor: {
type: oracledb.CURSOR,
dir: oracledb.BIND_OUT
@ -1262,7 +1291,7 @@ export class ManageFeeService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
}

View File

@ -16,15 +16,15 @@ export class OracleController {
) { }
// HomePageData
@ApiTags('HomePageData - Oracle')
@ApiTags('HomePage - Oracle')
@Get('/GetHomePageData/:id')
GetHomePageData(@Param('id', ParseIntPipe) id: number) {
return this.homePageDataService.GetHomePageData(id);
}
@ApiTags('GetCarnetSummaryData - Oracle')
@Get('/GetCarnetSummaryData/:id')
GetCarnetSummaryData(@Param('id') id: string) {
@ApiTags('HomePage - Oracle')
@Get('/GetCarnetSummaryData/:userid')
GetCarnetSummaryData(@Param('userid') id: string) {
return this.homePageDataService.GetCarnetSummaryData(id);
}
@ -67,7 +67,9 @@ export class OracleController {
body.p_bondsurety,
body.p_cargopolicyno,
body.p_cargosurety,
body.p_user_id
body.p_user_id,
body.P_NOTES,
body.P_FILEIDS
)
}
@ -89,7 +91,9 @@ export class OracleController {
body.p_bondsurety,
body.p_cargopolicyno,
body.p_cargosurety,
body.p_user_id
body.p_user_id,
body.P_NOTES,
body.P_FILEIDS
)
}
@ -116,6 +120,7 @@ export class OracleController {
body.p_defcontactflag,
body.p_firstname,
body.p_lastname,
body.P_MIDDLEINITIAL,
body.p_title,
body.p_phoneno,
body.p_mobileno,
@ -138,6 +143,7 @@ export class OracleController {
body.p_spcontactid,
body.p_firstname,
body.p_lastname,
body.P_MIDDLEINITIAL,
body.p_title,
body.p_phoneno,
body.p_mobileno,
@ -328,45 +334,66 @@ export class OracleController {
}
@ApiTags('Manage Fee - Oracle')
@Get('/GetBasicFeeRates/:id')
GetBasicFeeRates(@Param('id', ParseIntPipe) id: number) {
return this.manageFeeService.GETBASICFEERATES(id)
@Get('/GetBasicFeeRates/:P_SPID/:P_ACTIVE_INACTIVE')
GetBasicFeeRates(
@Param('P_SPID', ParseIntPipe) P_SPID: number,
@Param('P_ACTIVE_INACTIVE',) P_ACTIVE_INACTIVE:string
) {
return this.manageFeeService.GETBASICFEERATES(P_SPID,P_ACTIVE_INACTIVE)
}
@ApiTags('Manage Fee - Oracle')
@Get('/GetBondRates/:id')
GetBondRates( @Param('id', ParseIntPipe) id: number) {
return this.manageFeeService.GETBONDRATES(id)
GetBondRates(
@Param('P_SPID', ParseIntPipe) P_SPID: number,
@Param('P_ACTIVE_INACTIVE',) P_ACTIVE_INACTIVE:string
) {
return this.manageFeeService.GETBONDRATES(P_SPID,P_ACTIVE_INACTIVE)
}
@ApiTags('Manage Fee - Oracle')
@Get('/GetCargoRates/:id')
GetCargoRates( @Param('id', ParseIntPipe) id: number) {
return this.manageFeeService.GETCARGORATES(id)
GetCargoRates(
@Param('P_SPID', ParseIntPipe) P_SPID: number,
@Param('P_ACTIVE_INACTIVE',) P_ACTIVE_INACTIVE:string
) {
return this.manageFeeService.GETCARGORATES(P_SPID,P_ACTIVE_INACTIVE)
}
@ApiTags('Manage Fee - Oracle')
@Get('/GetCfFeeRates/:id')
GetCfFeeRates( @Param('id', ParseIntPipe) id: number) {
return this.manageFeeService.GETCFFEERATES(id)
GetCfFeeRates(
@Param('P_SPID', ParseIntPipe) P_SPID: number,
@Param('P_ACTIVE_INACTIVE',) P_ACTIVE_INACTIVE:string
) {
return this.manageFeeService.GETCFFEERATES(P_SPID,P_ACTIVE_INACTIVE)
}
@ApiTags('Manage Fee - Oracle')
@Get('/GetCsFeeRates/:id')
GetCsFeeRates( @Param('id', ParseIntPipe) id: number) {
return this.manageFeeService.GETCSFEERATES(id)
GetCsFeeRates(
@Param('P_SPID', ParseIntPipe) P_SPID: number,
@Param('P_ACTIVE_INACTIVE',) P_ACTIVE_INACTIVE:string
) {
return this.manageFeeService.GETCSFEERATES(P_SPID,P_ACTIVE_INACTIVE)
}
@ApiTags('Manage Fee - Oracle')
@Get('/GetEfFeeRates/:id')
GetEfFeeRates( @Param('id', ParseIntPipe) id: number) {
return this.manageFeeService.GETEFFEERATES(id)
GetEfFeeRates(
@Param('P_SPID', ParseIntPipe) P_SPID: number,
@Param('P_ACTIVE_INACTIVE',) P_ACTIVE_INACTIVE:string
) {
return this.manageFeeService.GETEFFEERATES(P_SPID,P_ACTIVE_INACTIVE)
}
@ApiTags('Manage Fee - Oracle')
@Get('/GetFeeComm/:id')
GetFeeComm( @Param('id', ParseIntPipe) id: number) {
return this.manageFeeService.GETFEECOMM(id)
GetFeeComm(
@Param('P_SPID', ParseIntPipe) P_SPID: number,
@Param('P_ACTIVE_INACTIVE',) P_ACTIVE_INACTIVE:string
) {
return this.manageFeeService.GETFEECOMM(P_SPID,P_ACTIVE_INACTIVE)
}
}

View File

@ -82,6 +82,14 @@ export class InsertNewServiceProviderDTO {
@ApiProperty({ required: true })
@IsString()
p_user_id: string;
@ApiProperty({ required: false })
@IsString()
P_NOTES: string;
@ApiProperty({ required: false })
@IsString()
P_FILEIDS: string;
}
export class UpdateServiceProviderDTO {
@ -144,6 +152,14 @@ export class UpdateServiceProviderDTO {
@ApiProperty({ required: true })
@IsString()
p_user_id: string;
@ApiProperty({ required: false })
@IsString()
P_NOTES: string;
@ApiProperty({ required: false })
@IsString()
P_FILEIDS: string;
}
// export class GetSPcontactsDTO {
@ -168,6 +184,10 @@ export class InsertSPContactsDTO {
@IsString()
p_lastname: string;
@ApiProperty({ required: false })
@IsString()
P_MIDDLEINITIAL: string;
@ApiProperty({ required: true })
@IsString()
p_title: string;
@ -206,6 +226,10 @@ export class UpdateSPContactsDTO {
@IsString()
p_lastname: string;
@ApiProperty({ required: false })
@IsString()
P_MIDDLEINITIAL: string;
@ApiProperty({ required: true })
@IsString()
p_title: string;

View File

@ -46,7 +46,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -88,7 +88,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -137,7 +137,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -158,6 +158,8 @@ export class OracleService {
p_cargopolicyno: String,
p_cargosurety: String,
p_user_id: String,
P_NOTES: string,
P_FILEIDS: string
) {
let connection;
@ -185,6 +187,8 @@ export class OracleService {
:p_cargopolicyno,
:p_cargosurety,
:p_user_id,
:P_NOTES,
:P_FILEIDS,
:p_cursor);
END;`, {
p_name: {
@ -243,6 +247,14 @@ export class OracleService {
val: p_user_id,
type: oracledb.DB_TYPE_VARCHAR
},
P_NOTES: {
val: P_NOTES,
type: oracledb.DB_TYPE_VARCHAR
},
P_FILEIDS: {
val: P_FILEIDS,
type: oracledb.DB_TYPE_VARCHAR
},
p_cursor: {
type: oracledb.CURSOR,
@ -260,7 +272,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -280,7 +292,9 @@ export class OracleService {
p_bondsurety: String,
p_cargopolicyno: String,
p_cargosurety: String,
p_user_id: String
p_user_id: String,
P_NOTES: string,
P_FILEIDS: string
) {
let connection;
@ -309,6 +323,8 @@ export class OracleService {
:p_cargopolicyno,
:p_cargosurety,
:p_user_id,
:P_NOTES,
:P_FILEIDS,
:p_cursor);
END;`, {
p_spid: {
@ -371,6 +387,14 @@ export class OracleService {
val: p_user_id,
type: oracledb.DB_TYPE_VARCHAR
},
P_NOTES: {
val: P_NOTES,
type: oracledb.DB_TYPE_VARCHAR
},
P_FILEIDS: {
val: P_FILEIDS,
type: oracledb.DB_TYPE_VARCHAR
},
p_cursor: {
type: oracledb.CURSOR,
dir: oracledb.BIND_OUT
@ -388,7 +412,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -438,7 +462,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -494,7 +518,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -506,6 +530,7 @@ export class OracleService {
p_defcontactflag: string,
p_firstname: string,
p_lastname: string,
P_MIDDLEINITIAL: string,
p_title: string,
p_phoneno: string,
p_mobileno: string,
@ -528,6 +553,7 @@ export class OracleService {
:p_defcontactflag,
:p_firstname,
:p_lastname,
:P_MIDDLEINITIAL,
:p_title,
:p_phoneno,
:p_mobileno,
@ -552,6 +578,10 @@ export class OracleService {
val: p_lastname,
type: oracledb.DB_TYPE_VARCHAR
},
P_MIDDLEINITIAL: {
val: P_MIDDLEINITIAL,
type: oracledb.DB_TYPE_VARCHAR
},
p_title: {
val: p_title,
type: oracledb.DB_TYPE_VARCHAR
@ -593,7 +623,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -625,7 +655,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -634,6 +664,7 @@ export class OracleService {
p_spcontactid: number,
p_firstname: string,
p_lastname: string,
P_MIDDLEINITIAL: string,
p_title: string,
p_phoneno: string,
p_mobileno: string,
@ -655,6 +686,7 @@ export class OracleService {
:p_spcontactid,
:p_firstname,
:p_lastname,
:P_MIDDLEINITIAL,
:p_title,
:p_phoneno,
:p_mobileno,
@ -675,6 +707,10 @@ export class OracleService {
val: p_lastname,
type: oracledb.DB_TYPE_VARCHAR
},
P_MIDDLEINITIAL: {
val: P_MIDDLEINITIAL,
type: oracledb.DB_TYPE_VARCHAR
},
p_title: {
val: p_title,
type: oracledb.DB_TYPE_VARCHAR
@ -716,7 +752,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -747,7 +783,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -801,7 +837,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -852,7 +888,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -922,7 +958,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -974,7 +1010,7 @@ export class OracleService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
}

View File

@ -62,7 +62,7 @@ export class ParamTableService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -106,7 +106,7 @@ export class ParamTableService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -210,7 +210,7 @@ export class ParamTableService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -297,7 +297,7 @@ export class ParamTableService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -334,7 +334,7 @@ export class ParamTableService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
@ -371,7 +371,7 @@ export class ParamTableService {
} catch (err) {
console.error('Error fetching users: ', err);
throw new Error('Error fetching users');
return {error: err.message}
} finally { }
}
}