Browse Source

Fix node Error: TaskResut [id] has no resolver

pull/1/head
rozetko 6 years ago
parent
commit
d50a9d901e
  1. 2
      server/src/controllers/analytics_controller.ts

2
server/src/controllers/analytics_controller.ts

@ -21,7 +21,7 @@ function onTaskResult(taskResult: TaskResult) {
}
let status = taskResult.status;
if(status === 'SUCCESS' || status === 'FAILED') {
if(id in taskResolvers) {
if(taskResolvers.has(id)) {
let resolver: any = taskResolvers.get(id);
resolver(taskResult);
taskResolvers.delete(id);

Loading…
Cancel
Save