Skip to content

Commit

Permalink
make better notification in FolderDeleteMembership.php
Browse files Browse the repository at this point in the history
  • Loading branch information
temaotl committed Jul 23, 2024
1 parent 6cb3e98 commit f0dfe3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/FolderDeleteMembership.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function handle(): void
}
$pathToFile = $federation->name.'/'.$entity->file;
if(! Storage::disk($diskName)->exists($pathToFile)) {
NotificationService::sendEntityNotification($entity, new MembershipRejected($entity->entityid, $federation->name));
return;
}

Expand All @@ -62,7 +63,6 @@ public function handle(): void
$lock->block(61);
EntityFacade::deleteEntityMetadataFromFolder($entity->file, $federation->xml_id);

NotificationService::sendEntityNotification($entity, new MembershipRejected($entity->entityid, $federation->name));

RunMdaScript::dispatch($federation, $lock->owner());
} catch (Exception $e) {
Expand Down

0 comments on commit f0dfe3a

Please sign in to comment.