Compare commits
3 Commits
b17a94342b
...
b27fee6ece
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b27fee6ece | ||
|
|
c7d084fa91 | ||
|
|
9535f75301 |
@ -77,12 +77,13 @@ async function bootstrap() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// app.useGlobalPipes(new ValidationPipe({ exceptionFactory:customExceptionFactory, whitelist: true, forbidNonWhitelisted: true, transform: true }));
|
// app.useGlobalPipes(new ValidationPipe({ exceptionFactory:customExceptionFactory, whitelist: true, forbidNonWhitelisted: true, transform: true }));
|
||||||
|
|
||||||
const config = new DocumentBuilder()
|
const config = new DocumentBuilder()
|
||||||
.setTitle('API')
|
.setTitle('API')
|
||||||
.setDescription('API description')
|
.setDescription('API description')
|
||||||
.setVersion('1.0')
|
.setVersion('1.0')
|
||||||
.addServer(
|
.addServer(
|
||||||
'https://dev.alphaomegainfosys.com/test-api',
|
`https://dev.alphaomegainfosys.com/${process.env.DB_TYPE === "ORACLE" ? "test-api-1" : process.env.DB_TYPE === "PG" ? "test-api-2" : "test-api"}`,
|
||||||
'Development Server 2',
|
'Development Server 2',
|
||||||
)
|
)
|
||||||
.addServer('http://localhost:3000', 'Development Server 1')
|
.addServer('http://localhost:3000', 'Development Server 1')
|
||||||
|
|||||||
@ -59,10 +59,11 @@ export class UserMaintenanceService {
|
|||||||
|
|
||||||
await client.query('COMMIT');
|
await client.query('COMMIT');
|
||||||
|
|
||||||
checkPgUserDefinedErrors(roleResult);
|
// no need for this api
|
||||||
checkPgUserDefinedErrors(menuResult);
|
// checkPgUserDefinedErrors(roleResult);
|
||||||
checkPgUserDefinedErrors(menuPageResult);
|
// checkPgUserDefinedErrors(menuResult);
|
||||||
checkPgUserDefinedErrors(userDetailsResult);
|
// checkPgUserDefinedErrors(menuPageResult);
|
||||||
|
// checkPgUserDefinedErrors(userDetailsResult);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
roleDetails: toUpperCaseKeys(roleResult.rows).map(x => x.ROLENAME),
|
roleDetails: toUpperCaseKeys(roleResult.rows).map(x => x.ROLENAME),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user