Skip to content

A self-hosted media server and file management system

chore: add comment for missed uuid collision on index files

aminnausin672709f8b8f6
diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.php
index 7a470f63..0c19cb49 100755
--- a/app/Jobs/IndexFiles.php
+++ b/app/Jobs/IndexFiles.php
@@ -716,6 +716,12 @@ class IndexFiles extends ManagedSubTask {
* -> generate new uuid and upsert new metadata
*/
return $this->generateResolveUuidResult(null, true, false);
+
+ /**
+ * Scenario 5 (missed):
+ * the new file has an embedded uuid and another new file has the same uuid
+ * -> generate new uuid and upsert new metadata on one of the new files
+ */
}
private function generateResolveUuidResult(?string $uuid, bool $shouldEmbed, bool $isReplacing): array {