Skip to content

Commit afca542

Browse files
committed
👌 IMPROVE: Remove last activity from "lost" tasks as it was causing issues
1 parent 10f8de8 commit afca542

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎classes/api_data.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@ private function store_tasks( $filter, $page ) {
451451
// This workroom is private for another expert = possibly lost.
452452
if ( in_array( $task['state'], [ 'hired', 'completed', 'refunded', 'paid' ], true ) ) {
453453
$new_task['flag'] = 'lost';
454-
$new_task['last_activity'] = (int) strtotime( $task['published_at'] );
454+
// Disabled last activity for these ones, as it was causing more problems than solving
455+
// $new_task['last_activity'] = (int) strtotime( $task['published_at'] );
455456
}
456457
}
457458

0 commit comments

Comments
 (0)