Loading...
Loading...
Compare original and translation side by side
ctx.vtex.loggerinfowarnerrorconsole.logctx.vtex.loggerpartner-get-orderpartner-sync-catalogctx.vtex.loggerinfowarnerrorconsole.logctx.vtex.loggerpartner-get-orderpartner-sync-catalogtry {
await ctx.clients.partnerApi.sendOrder(orderId)
} catch (error) {
ctx.vtex.logger.error({
message: 'Failed to send order to partner',
orderId,
account: ctx.vtex.account,
routeId: ctx.vtex.route?.id,
})
throw error
}try {
await ctx.clients.partnerApi.sendOrder(orderId)
} catch (_) {
return
}try {
await ctx.clients.partnerApi.sendOrder(orderId)
} catch (error) {
ctx.vtex.logger.error({
message: 'Failed to send order to partner',
orderId,
account: ctx.vtex.account,
routeId: ctx.vtex.route?.id,
})
throw error
}try {
await ctx.clients.partnerApi.sendOrder(orderId)
} catch (_) {
return
}metricmetricreturn this.http.get(`/orders/${id}`, {
metric: 'partner-get-order',
})return this.http.get(`/orders/${id}`)metricmetricreturn this.http.get(`/orders/${id}`, {
metric: 'partner-get-order',
})return this.http.get(`/orders/${id}`)ctx.vtex.logger.info({
message: 'Partner sync started',
orderId,
account: ctx.vtex.account,
})ctx.vtex.logger.info({
message: 'Partner sync started',
body: ctx.request.body,
auth: ctx.request.header.authorization,
})ctx.vtex.logger.info({
message: 'Partner sync started',
orderId,
account: ctx.vtex.account,
})ctx.vtex.logger.info({
message: 'Partner sync started',
body: ctx.request.body,
auth: ctx.request.header.authorization,
})routeIdrouteId