File tree Expand file tree Collapse file tree
ProcessMaker/Http/Controllers/Api/Actions/Cases Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,20 +99,4 @@ private function getTaskDraftIds(array $tokenIds): array
9999 ->pluck ('id ' )
100100 ->all ();
101101 }
102-
103- private function dispatchSavedSearchRecount (): void
104- {
105- if (!config ('savedsearch.count ' , false )) {
106- return ;
107- }
108-
109- $ jobClass = 'ProcessMaker \\Package \\SavedSearch \\Jobs \\RecountAllSavedSearches ' ;
110- if (!class_exists ($ jobClass )) {
111- return ;
112- }
113-
114- DB ::afterCommit (static function () use ($ jobClass ): void {
115- $ jobClass ::dispatch (['request ' , 'task ' ]);
116- });
117- }
118102}
Original file line number Diff line number Diff line change @@ -241,4 +241,20 @@ private function deleteNotifications(array $requestIds): void
241241 ->whereIn ('data->type ' , $ notificationTypes )
242242 ->delete ();
243243 }
244+
245+ private function dispatchSavedSearchRecount (): void
246+ {
247+ if (!config ('savedsearch.count ' , false )) {
248+ return ;
249+ }
250+
251+ $ jobClass = 'ProcessMaker \\Package \\SavedSearch \\Jobs \\RecountAllSavedSearches ' ;
252+ if (!class_exists ($ jobClass )) {
253+ return ;
254+ }
255+
256+ DB ::afterCommit (static function () use ($ jobClass ): void {
257+ $ jobClass ::dispatch (['request ' , 'task ' ]);
258+ });
259+ }
244260}
You can’t perform that action at this time.
0 commit comments