diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-10-17 16:53:42 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-10-18 13:21:50 +0200 |
commit | e8faaebb0fc2e57cb9191529c356b33ebe454a4a (patch) | |
tree | d777da8456284d530c6a54aa28840ff86733a9e2 /lib | |
parent | f52d763f50d10b8586c083919b287cc9a363f81e (diff) | |
download | nextcloud-server-e8faaebb0fc2e57cb9191529c356b33ebe454a4a.tar.gz nextcloud-server-e8faaebb0fc2e57cb9191529c356b33ebe454a4a.zip |
enh(TextToImage): Allow anonymous access to IManager#getUserTasksByApp
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TextToImage/Db/TaskMapper.php | 2 | ||||
-rw-r--r-- | lib/private/TextToImage/Manager.php | 2 | ||||
-rw-r--r-- | lib/public/TextToImage/IManager.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/TextToImage/Db/TaskMapper.php b/lib/private/TextToImage/Db/TaskMapper.php index f65d5a1d17b..2cf9cff5882 100644 --- a/lib/private/TextToImage/Db/TaskMapper.php +++ b/lib/private/TextToImage/Db/TaskMapper.php @@ -89,7 +89,7 @@ class TaskMapper extends QBMapper { * @return array * @throws Exception */ - public function findUserTasksByApp(string $userId, string $appId, ?string $identifier = null): array { + public function findUserTasksByApp(?string $userId, string $appId, ?string $identifier = null): array { $qb = $this->db->getQueryBuilder(); $qb->select(Task::$columns) ->from($this->tableName) diff --git a/lib/private/TextToImage/Manager.php b/lib/private/TextToImage/Manager.php index f6828cda595..192a5e5dc98 100644 --- a/lib/private/TextToImage/Manager.php +++ b/lib/private/TextToImage/Manager.php @@ -267,7 +267,7 @@ class Manager implements IManager { * @param string|null $identifier * @return Task[] */ - public function getUserTasksByApp(string $userId, string $appId, ?string $identifier = null): array { + public function getUserTasksByApp(?string $userId, string $appId, ?string $identifier = null): array { try { $taskEntities = $this->taskMapper->findUserTasksByApp($userId, $appId, $identifier); return array_map(static function (DbTask $taskEntity) { diff --git a/lib/public/TextToImage/IManager.php b/lib/public/TextToImage/IManager.php index dc7488156bc..53141f3ce39 100644 --- a/lib/public/TextToImage/IManager.php +++ b/lib/public/TextToImage/IManager.php @@ -88,11 +88,11 @@ interface IManager { public function getUserTask(int $id, ?string $userId): Task; /** - * @param string $userId + * @param ?string $userId * @param string $appId * @param string|null $identifier * @return Task[] * @since 28.0.0 */ - public function getUserTasksByApp(string $userId, string $appId, ?string $identifier = null): array; + public function getUserTasksByApp(?string $userId, string $appId, ?string $identifier = null): array; } |