| | |
| | | return ['added' => $added, 'errors' => $errors]; |
| | | |
| | | } catch (Exception $e) { |
| | | $this->logError('addItemsToList', [ |
| | | 'error' => $e->getMessage(), |
| | | $this->logError($e->getMessage(),'addItemsToList', [ |
| | | 'user_id' => $user_id, |
| | | 'list_id' => $list_id, |
| | | ]); |
| | |
| | | ]; |
| | | |
| | | } catch (Exception $e) { |
| | | $this->logError('getListDetails', [ |
| | | 'error' => $e->getMessage(), |
| | | $this->logError($e->getMessage(), 'getListDetails', [ |
| | | 'user_id' => $user_id, |
| | | 'list_id' => $list_id |
| | | ]); |
| | |
| | | ]; |
| | | |
| | | } catch (Exception $e) { |
| | | $this->logError('updateList', [ |
| | | 'error' => $e->getMessage(), |
| | | $this->logError($e->getMessage(),'updateList', [ |
| | | 'user_id' => $user_id, |
| | | 'list_id' => $list_id |
| | | ]); |
| | |
| | | ]; |
| | | |
| | | } catch (Exception $e) { |
| | | $this->logError('removeFromList', [ |
| | | 'error' => $e->getMessage(), |
| | | $this->logError($e->getMessage(), 'removeFromList', [ |
| | | 'user_id' => $user_id, |
| | | 'list_id' => $list_id |
| | | ]); |
| | |
| | | ]; |
| | | |
| | | } catch (Exception $e) { |
| | | $this->logError('unshareList', [ |
| | | 'error' => $e->getMessage(), |
| | | $this->logError($e->getMessage(),'unshareList', [ |
| | | 'user_id' => $user_id, |
| | | 'list_id' => $list_id, |
| | | 'email' => $email |
| | |
| | | ]; |
| | | |
| | | } catch (Exception $e) { |
| | | $this->logError('acceptListInvitation', [ |
| | | 'error' => $e->getMessage(), |
| | | $this->logError($e->getMessage(),'acceptListInvitation', [ |
| | | 'token' => $token, |
| | | 'email' => $email |
| | | ]); |