Revert "Transformed at addition"

This commit is contained in:
Shimon Newman
2025-01-29 10:30:35 +02:00
committed by GitHub
parent 0220144615
commit f1f660352e
4 changed files with 0 additions and 32 deletions
-6
View File
@@ -607,12 +607,6 @@ App::init()
if ($file->isEmpty()) {
throw new Exception(Exception::STORAGE_FILE_NOT_FOUND);
}
$transformedAt = $file->getAttribute('transformedAt', '');
if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $transformedAt) {
$file->setAttribute('transformedAt', DateTime::now());
Authorization::skip(fn () => $dbForProject->updateDocument('bucket_' . $file->getAttribute('bucketInternalId'), $file->getId(), $file));
}
}
$response