mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 03:20:46 +02:00
folder and file fixes (#6461)
This commit is contained in:
@@ -193,7 +193,10 @@ export async function reconcileServerFiles(
|
||||
typeof updatedAtMs === "number" && Number.isFinite(updatedAtMs)
|
||||
? updatedAtMs
|
||||
: stub.remoteStorageUpdatedAt,
|
||||
folderId: safeParseFolderId(serverFile.folderId) ?? stub.folderId,
|
||||
// Server is authoritative for cloud-stored files. Don't fall back to
|
||||
// stub.folderId on null - that would resurrect a stale folder pointer
|
||||
// after the server SET_NULL'd it (e.g. owner deleted the folder).
|
||||
folderId: safeParseFolderId(serverFile.folderId),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user