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
|
||||
);
|
||||
|
||||
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,) { }
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@ export function APINODReturn(schema: z.ZodTypeAny, data , path: string, tracing?
|
||||
|
||||
try {
|
||||
// Validate the result using the provided schema
|
||||
console.log({schema, data})
|
||||
schema.parse(data);
|
||||
|
||||
} catch (error) {
|
||||
|
||||
@@ -13,14 +13,13 @@ function createProvider(serviceName) {
|
||||
|
||||
provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
|
||||
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,
|
||||
// Uncomment and customize the following if needed
|
||||
// getExportRequestHeaders: () => {
|
||||
// return {
|
||||
// foo: 'bar',
|
||||
// };
|
||||
// }
|
||||
getExportRequestHeaders: () => {
|
||||
return {
|
||||
'Authorization': 'Basic ' + btoa('tabteste@006:tabteste@006'),
|
||||
};
|
||||
}
|
||||
})));
|
||||
|
||||
provider.register();
|
||||
|
||||
@@ -95,19 +95,11 @@ export function XTracerAsync({ name, bugPrint, module = null, autoFinish = true
|
||||
try {
|
||||
const result = await originalMethod.apply(this, args);
|
||||
|
||||
if(!window.location.origin.includes('https')) {
|
||||
if(autoFinish) {
|
||||
tracing.finish()
|
||||
}
|
||||
}
|
||||
tracing.finish()
|
||||
return result
|
||||
} catch (e) {
|
||||
|
||||
if(!window.location.origin.includes('https')) {
|
||||
if(autoFinish) {
|
||||
tracing.finish()
|
||||
}
|
||||
}
|
||||
tracing.setAttribute('catch', 'true')
|
||||
tracing.finish()
|
||||
console.error(e);
|
||||
return false
|
||||
}
|
||||
@@ -135,15 +127,12 @@ export function XTracer({ name, bugPrint, module, autoFinish = true }) {
|
||||
try {
|
||||
const result = originalMethod.apply(this, args);
|
||||
|
||||
if(!window.location.origin.includes('https')) {
|
||||
tracing.finish()
|
||||
}
|
||||
tracing.finish()
|
||||
return result
|
||||
} catch (e) {
|
||||
|
||||
if(!window.location.origin.includes('https')) {
|
||||
tracing.finish()
|
||||
}
|
||||
tracing.setAttribute('catch', 'true')
|
||||
tracing.finish()
|
||||
console.error(e);
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -374,6 +374,8 @@ export class EditEventToApprovePage implements OnInit {
|
||||
/* await this.eventsService.postEventToApproveEdit(event).toPromise() */
|
||||
this.agendaDataRepository.updateEvent(this.eventProcess.serialNumber, event, false).subscribe((value) => {
|
||||
console.log(value)
|
||||
this.close()
|
||||
|
||||
}, ((error) => {
|
||||
console.log('edit event error: ', error)
|
||||
}));
|
||||
@@ -402,8 +404,6 @@ export class EditEventToApprovePage implements OnInit {
|
||||
}));
|
||||
}
|
||||
|
||||
this.close()
|
||||
|
||||
this.httpErrorHandler.httpsSucessMessagge('Editar evento');
|
||||
|
||||
} catch (e) {
|
||||
|
||||
@@ -328,6 +328,7 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
console.log(value)
|
||||
this.httpErroHalde.httpsSucessMessagge('Editar evento')
|
||||
window['approve-event-getTask']()
|
||||
this.close();
|
||||
}, ((error) => {
|
||||
this.httpErroHalde.httpStatusHandle(error)
|
||||
console.log('edit event error: ', error)
|
||||
@@ -391,7 +392,6 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
|
||||
}) */
|
||||
|
||||
this.close();
|
||||
}
|
||||
|
||||
async openAttendees() {
|
||||
|
||||
Reference in New Issue
Block a user