File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 8
8
- trying
9
9
- staging
10
10
- main
11
+ schedule :
12
+ - cron : ' 0 3 * * 1'
11
13
12
14
env :
13
15
fail-fast : true
Original file line number Diff line number Diff line change @@ -18,25 +18,16 @@ public function __construct(SearchService $searchService)
18
18
19
19
public function postUpdate (LifecycleEventArgs $ args ): void
20
20
{
21
- if (!$ this ->searchService ->isSearchable ($ args ->getObject ())) {
22
- return ;
23
- }
24
21
$ this ->searchService ->index ($ args ->getObjectManager (), $ args ->getObject ());
25
22
}
26
23
27
24
public function postPersist (LifecycleEventArgs $ args ): void
28
25
{
29
- if (!$ this ->searchService ->isSearchable ($ args ->getObject ())) {
30
- return ;
31
- }
32
26
$ this ->searchService ->index ($ args ->getObjectManager (), $ args ->getObject ());
33
27
}
34
28
35
29
public function preRemove (LifecycleEventArgs $ args ): void
36
30
{
37
- if (!$ this ->searchService ->isSearchable ($ args ->getObject ())) {
38
- return ;
39
- }
40
31
$ this ->searchService ->remove ($ args ->getObjectManager (), $ args ->getObject ());
41
32
}
42
33
}
You can’t perform that action at this time.
0 commit comments