File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ public function process(ConsumerEvent $event)
49
49
'id ' => $ event ->getMessage ()->getValue ('mediaId ' )
50
50
));
51
51
52
- // solve race condition between message queue and database transaction
53
- $ media ->setProviderReference ($ event ->getMessage ()->getValue ('providerReference ' ));
54
-
55
52
if (!$ media ) {
56
53
throw new HandlingException (sprintf ('Media not found - id: %s ' , $ event ->getMessage ()->getValue ('mediaId ' )));
57
54
}
58
55
56
+ // solve race condition between message queue and database transaction
57
+ $ media ->setProviderReference ($ event ->getMessage ()->getValue ('providerReference ' ));
58
+
59
59
try {
60
60
$ this ->getThumbnail ($ event )->generate ($ this ->pool ->getProvider ($ media ->getProviderName ()), $ media );
61
61
} catch (\LogicException $ e ) {
You can’t perform that action at this time.
0 commit comments