File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ const fetchTasks = async () => {
74
74
const tasks = buildTasks ( tasksSnapshot ) ;
75
75
const promises = tasks . map ( async ( task ) => fromFirestoreData ( task ) ) ;
76
76
const updatedTasks = await Promise . all ( promises ) ;
77
- const taskList = updatedTasks . map ( async ( task ) => {
77
+ const taskPromises = updatedTasks . map ( async ( task ) => {
78
78
task . status = TASK_STATUS [ task . status . toUpperCase ( ) ] || task . status ;
79
79
const taskId = task . id ;
80
80
const dependencySnapshot = await dependencyModel . where ( "taskId" , "==" , taskId ) . get ( ) ;
@@ -85,6 +85,7 @@ const fetchTasks = async () => {
85
85
} ) ;
86
86
return task ;
87
87
} ) ;
88
+ const taskList = await Promise . all ( taskPromises ) ;
88
89
return taskList ;
89
90
} catch ( err ) {
90
91
logger . error ( "error getting tasks" , err ) ;
You can’t perform that action at this time.
0 commit comments