fix(files_versions): Add missing null check

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
This commit is contained in:
Varun Patil 2024-03-07 08:28:06 -08:00
parent 20953d0374
commit d49787d004

View file

@ -194,6 +194,11 @@ class FileEventsListener implements IEventListener {
}
$path = $this->getPathForNode($node);
if ($path === null) {
return;
}
$result = Storage::store($path);
// Store the result of the version creation so it can be used in post_write_hook.