Completed refactor safeAddStuf -> addStuf in photosControler
Signed-off-by: Arne Hamann <kontakt+github@arne.email>
This commit is contained in:
Родитель
4768f5ee5f
Коммит
91c5f83868
|
@ -121,13 +121,13 @@ class FileHooks {
|
|||
//$sourceUserId = $params['uidOwner'];
|
||||
$targetUserId = $params['shareWith'];
|
||||
$fileId = $params['fileSource']; // or itemSource
|
||||
$this->photofilesService->safeAddByFileIdUserId($fileId, $targetUserId);
|
||||
$this->photofilesService->addByFileIdUserId($fileId, $targetUserId);
|
||||
$this->tracksService->safeAddByFileIdUserId($fileId, $targetUserId);
|
||||
}
|
||||
else if ($params['itemType'] === 'folder') {
|
||||
$targetUserId = $params['shareWith'];
|
||||
$dirId = $params['fileSource']; // or itemSource
|
||||
$this->photofilesService->safeAddByFolderIdUserId($dirId, $targetUserId);
|
||||
$this->photofilesService->addByFolderIdUserId($dirId, $targetUserId);
|
||||
$this->tracksService->safeAddByFolderIdUserId($dirId, $targetUserId);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче