Resolve filesystem work product targets by existing file
This commit is contained in:
1 parent
c1349fceab
commit
d13c9d83e8
3 files changed
+118
-29
No files matched your search
@@ -76,7 +76,12 @@ export function registerCoreReadHandlers({
|
||||
no_target: "WORK_PRODUCT_NO_TARGET",
|
||||
workspace_unresolved: "WORK_PRODUCT_WORKSPACE_UNRESOLVED",
|
||||
path_escape: "WORK_PRODUCT_PATH_ESCAPE",
|
||||
path_missing: "WORK_PRODUCT_PATH_MISSING",
|
||||
} as const;
|
||||
if (target.reason === "path_missing") {
|
||||
db.core.documents.updateWorkProduct(parsed.data.id, parsed.data.companyId, { status: "archived" });
|
||||
publishDomainChanged();
|
||||
}
|
||||
return fail(codeByReason[target.reason], target.detail);
|
||||
}
|
||||
if (target.kind === "url") {
|
||||
|
||||
Reference in new issue
Block a user