fix(local): switch values back to local for local testing
Will need to figure out a method to automatically detect if backend is running locally or remotely to avoid switching URIs back and forth constantly
This commit is contained in:
parent
c0fbad006d
commit
29f131e307
|
|
@ -12,7 +12,8 @@ export class AuthController {
|
|||
@Get('/callback')
|
||||
@UseGuards(OIDCLoginGuard)
|
||||
loginCallback(@Req() req: Request, @Res() res: Response) {
|
||||
res.redirect('http://10.100.251.2:9011/#/login-success');
|
||||
// res.redirect('http://10.100.251.2:9011/#/login-success');
|
||||
res.redirect('http://localhost:9000/#/login-success');
|
||||
}
|
||||
|
||||
@Get('/me')
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ async function bootstrap() {
|
|||
|
||||
// Enable CORS
|
||||
app.enableCors({
|
||||
origin: ['http://10.100.251.2:9011', 'http://10.100.251.2:9012', 'http://10.100.251.2:9013'],
|
||||
origin: ['http://10.100.251.2:9011', 'http://10.100.251.2:9012', 'http://10.100.251.2:9013', 'http://localhost:9000'],
|
||||
credentials: true,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export const toStringFromHHmm = (date: Date): string => {
|
|||
|
||||
//converts string to Date format
|
||||
export const toStringFromDate = (date: Date) =>
|
||||
date.toISOString().slice(0,10);
|
||||
date.toISOString().slice(0, 10);
|
||||
|
||||
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ export const toHHmmFromDate = (input: Date | string): string => {
|
|||
|
||||
//converts Date format to string
|
||||
export const toDateFromString = (ymd: string | Date): Date => {
|
||||
return new Date(`${ymd}T00:00:00:000Z`);
|
||||
return new Date(ymd);
|
||||
}
|
||||
|
||||
export const toUTCDateFromString = (iso: string | Date) => {
|
||||
|
|
@ -49,9 +49,9 @@ export const toUTCDateFromString = (iso: string | Date) => {
|
|||
};
|
||||
|
||||
export const sevenDaysFrom = (date: Date | string): Date[] => {
|
||||
return Array.from({length: 7 }, (_,i) => {
|
||||
return Array.from({ length: 7 }, (_, i) => {
|
||||
const d = new Date(date);
|
||||
d.setUTCDate(d.getUTCDate() + i );
|
||||
d.setUTCDate(d.getUTCDate() + i);
|
||||
return d;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user