mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
big solved
This commit is contained in:
@@ -23,7 +23,7 @@ export class TokenInterceptor implements HttpInterceptor {
|
|||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|
||||||
private excludedDomains = [ environment.apiChatUrl]; // Add the domains you want to exclude
|
private excludedDomains = [ 'Login', environment.apiChatUrl]; // Add the domains you want to exclude
|
||||||
|
|
||||||
constructor(private http: HttpClient, private router: Router,private httpErrorHandle: HttpErrorHandle,) { }
|
constructor(private http: HttpClient, private router: Router,private httpErrorHandle: HttpErrorHandle,) { }
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ export function APINODReturn(schema: z.ZodTypeAny, data , path: string, tracing?
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Validate the result using the provided schema
|
// Validate the result using the provided schema
|
||||||
console.log({schema, data})
|
|
||||||
schema.parse(data);
|
schema.parse(data);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -13,14 +13,13 @@ function createProvider(serviceName) {
|
|||||||
|
|
||||||
provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
|
provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
|
||||||
provider.addSpanProcessor(new SimpleSpanProcessor(new ZipkinExporter({
|
provider.addSpanProcessor(new SimpleSpanProcessor(new ZipkinExporter({
|
||||||
url: 'http://5.180.182.151:9411/api/v2/spans',
|
url: 'https://5-180-182-151.cloud-xip.com:85/zipkin-endpoint/api/v2/spans',
|
||||||
serviceName: serviceName,
|
serviceName: serviceName,
|
||||||
// Uncomment and customize the following if needed
|
getExportRequestHeaders: () => {
|
||||||
// getExportRequestHeaders: () => {
|
return {
|
||||||
// return {
|
'Authorization': 'Basic ' + btoa('tabteste@006:tabteste@006'),
|
||||||
// foo: 'bar',
|
};
|
||||||
// };
|
}
|
||||||
// }
|
|
||||||
})));
|
})));
|
||||||
|
|
||||||
provider.register();
|
provider.register();
|
||||||
|
|||||||
@@ -95,19 +95,11 @@ export function XTracerAsync({ name, bugPrint, module = null, autoFinish = true
|
|||||||
try {
|
try {
|
||||||
const result = await originalMethod.apply(this, args);
|
const result = await originalMethod.apply(this, args);
|
||||||
|
|
||||||
if(!window.location.origin.includes('https')) {
|
|
||||||
if(autoFinish) {
|
|
||||||
tracing.finish()
|
tracing.finish()
|
||||||
}
|
|
||||||
}
|
|
||||||
return result
|
return result
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
tracing.setAttribute('catch', 'true')
|
||||||
if(!window.location.origin.includes('https')) {
|
|
||||||
if(autoFinish) {
|
|
||||||
tracing.finish()
|
tracing.finish()
|
||||||
}
|
|
||||||
}
|
|
||||||
console.error(e);
|
console.error(e);
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@@ -135,15 +127,12 @@ export function XTracer({ name, bugPrint, module, autoFinish = true }) {
|
|||||||
try {
|
try {
|
||||||
const result = originalMethod.apply(this, args);
|
const result = originalMethod.apply(this, args);
|
||||||
|
|
||||||
if(!window.location.origin.includes('https')) {
|
|
||||||
tracing.finish()
|
tracing.finish()
|
||||||
}
|
|
||||||
return result
|
return result
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
||||||
if(!window.location.origin.includes('https')) {
|
tracing.setAttribute('catch', 'true')
|
||||||
tracing.finish()
|
tracing.finish()
|
||||||
}
|
|
||||||
console.error(e);
|
console.error(e);
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -374,6 +374,8 @@ export class EditEventToApprovePage implements OnInit {
|
|||||||
/* await this.eventsService.postEventToApproveEdit(event).toPromise() */
|
/* await this.eventsService.postEventToApproveEdit(event).toPromise() */
|
||||||
this.agendaDataRepository.updateEvent(this.eventProcess.serialNumber, event, false).subscribe((value) => {
|
this.agendaDataRepository.updateEvent(this.eventProcess.serialNumber, event, false).subscribe((value) => {
|
||||||
console.log(value)
|
console.log(value)
|
||||||
|
this.close()
|
||||||
|
|
||||||
}, ((error) => {
|
}, ((error) => {
|
||||||
console.log('edit event error: ', error)
|
console.log('edit event error: ', error)
|
||||||
}));
|
}));
|
||||||
@@ -402,8 +404,6 @@ export class EditEventToApprovePage implements OnInit {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.close()
|
|
||||||
|
|
||||||
this.httpErrorHandler.httpsSucessMessagge('Editar evento');
|
this.httpErrorHandler.httpsSucessMessagge('Editar evento');
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
console.log(value)
|
console.log(value)
|
||||||
this.httpErroHalde.httpsSucessMessagge('Editar evento')
|
this.httpErroHalde.httpsSucessMessagge('Editar evento')
|
||||||
window['approve-event-getTask']()
|
window['approve-event-getTask']()
|
||||||
|
this.close();
|
||||||
}, ((error) => {
|
}, ((error) => {
|
||||||
this.httpErroHalde.httpStatusHandle(error)
|
this.httpErroHalde.httpStatusHandle(error)
|
||||||
console.log('edit event error: ', error)
|
console.log('edit event error: ', error)
|
||||||
@@ -391,7 +392,6 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
}) */
|
}) */
|
||||||
|
|
||||||
this.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async openAttendees() {
|
async openAttendees() {
|
||||||
|
|||||||
Reference in New Issue
Block a user