fix(files): serve a plugin the files a trip keeps while Documents is off

The plugin file surface follows the REST rule: the list and reads keep booking, place, expense, note and message files, a write on a loose file goes through when it attaches it, and uploads and deletes stay open.
This commit is contained in:
Maurice
2026-11-23 15:37:13 +01:00
parent a0d66eb898
commit 4cd3f3d650
5 changed files with 106 additions and 37 deletions
+1 -1
View File
@@ -584,7 +584,7 @@ export async function createPluginRpcHostParts(
new TodoRpc(todos, realtime, guards),
new DayNotesRpc(dayNotes, realtime, guards),
new PackingRpc(packing, realtime, guards),
new FilesRpc(files, realtime, usersRepo, guards, generalStorage),
new FilesRpc(files, realtime, usersRepo, guards, generalStorage, addons),
new PlacesRpc(places, journey, realtime, guards, placeOriginsStub()),
new DaysRpc(
days,
+1 -1
View File
@@ -67,7 +67,7 @@ export function allRpcControllers(): object[] {
new TodoRpc(anyService(), anyService(), anyService()),
new DayNotesRpc(anyService(), anyService(), anyService()),
new PackingRpc(anyService(), anyService(), anyService()),
new FilesRpc(anyService(), anyService(), anyService(), anyService(), anyService()),
new FilesRpc(anyService(), anyService(), anyService(), anyService(), anyService(), anyService()),
new PlacesRpc(anyService(), anyService(), anyService(), anyService(), anyService()),
new DaysRpc(anyService(), anyService(), anyService(), anyService()),
new ItineraryRpc(anyService(), anyService(), anyService()),