From 1d2403d7cbf0daaeeae6b10f7229cbb49f8e8956 Mon Sep 17 00:00:00 2001 From: Michael Manganiello Date: Tue, 12 Aug 2025 16:17:20 -0300 Subject: [PATCH] fix: Correctly upload manual to resources path Use the right filesystem handler for the manual to be uploaded to the `resources` path instead of the `rom` path. --- backend/endpoints/rom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/endpoints/rom.py b/backend/endpoints/rom.py index 0ea602038..35ee5ac46 100644 --- a/backend/endpoints/rom.py +++ b/backend/endpoints/rom.py @@ -814,10 +814,10 @@ async def add_rom_manuals( raise RomNotFoundInDatabaseException(id) manuals_path = f"{rom.fs_resources_path}/manual" - file_location = fs_rom_handler.validate_path(f"{manuals_path}/{rom.id}.pdf") + file_location = fs_resource_handler.validate_path(f"{manuals_path}/{rom.id}.pdf") log.info(f"Uploading manual to {hl(str(file_location))}") - await fs_rom_handler.make_directory(manuals_path) + await fs_resource_handler.make_directory(manuals_path) parser = StreamingFormDataParser(headers=request.headers) parser.register("x-upload-platform", NullTarget())