image: improve typing

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/767/head
Varun Patil 2023-08-03 22:15:27 -07:00
parent dfc7f76c10
commit c7b05c1194
1 changed files with 3 additions and 3 deletions

View File

@ -235,13 +235,13 @@ class ImageController extends GenericApiController
* *
* Set the exif data for a file. * Set the exif data for a file.
* *
* @param string fileid * @param int fileid
* @param array raw exif data * @param array raw exif data
*/ */
public function setExif(string $id, array $raw): Http\Response public function setExif(int $id, array $raw): Http\Response
{ {
return Util::guardEx(function () use ($id, $raw) { return Util::guardEx(function () use ($id, $raw) {
$file = $this->fs->getUserFile((int) $id); $file = $this->fs->getUserFile($id);
// Check if user has permissions // Check if user has permissions
if (!$file->isUpdateable() || Util::isEncryptionEnabled()) { if (!$file->isUpdateable() || Util::isEncryptionEnabled()) {