chore: lint
This commit is contained in:
@@ -329,11 +329,11 @@ async function executeRun(id: string) {
|
|||||||
distinctId: id,
|
distinctId: id,
|
||||||
event: 'maxun-oss-run-created-api',
|
event: 'maxun-oss-run-created-api',
|
||||||
properties: {
|
properties: {
|
||||||
runId: id,
|
runId: id,
|
||||||
created_at: new Date().toISOString(),
|
created_at: new Date().toISOString(),
|
||||||
status: 'success',
|
status: 'success',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
@@ -344,20 +344,20 @@ async function executeRun(id: string) {
|
|||||||
logger.log('info', `Error while running a recording with id: ${id} - ${error.message}`);
|
logger.log('info', `Error while running a recording with id: ${id} - ${error.message}`);
|
||||||
const run = await Run.findOne({ where: { runId: id } });
|
const run = await Run.findOne({ where: { runId: id } });
|
||||||
if (run) {
|
if (run) {
|
||||||
await run.update({
|
await run.update({
|
||||||
status: 'failed',
|
status: 'failed',
|
||||||
finishedAt: new Date().toLocaleString(),
|
finishedAt: new Date().toLocaleString(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
captureServerAnalytics.capture({
|
captureServerAnalytics.capture({
|
||||||
distinctId: id,
|
distinctId: id,
|
||||||
event: 'maxun-oss-run-created-api',
|
event: 'maxun-oss-run-created-api',
|
||||||
properties: {
|
properties: {
|
||||||
runId: id,
|
runId: id,
|
||||||
created_at: new Date().toISOString(),
|
created_at: new Date().toISOString(),
|
||||||
status: 'failed',
|
status: 'failed',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
error: error.message,
|
error: error.message,
|
||||||
|
|||||||
Reference in New Issue
Block a user