fix: missing trailing slash in path
This commit is contained in:
parent
a206886be5
commit
37d0b08b11
4 changed files with 16 additions and 4 deletions
|
|
@ -163,7 +163,10 @@ export class FolderController extends Controller {
|
|||
await esClient.update({
|
||||
index: DEFAULT_INDEX!,
|
||||
id: data._id,
|
||||
doc: { pathname: destination, path: destination.split("/").slice(0, -1).join("/") },
|
||||
doc: {
|
||||
pathname: destination,
|
||||
path: destination.split("/").slice(0, -1).join("/") + "/",
|
||||
},
|
||||
refresh: "wait_for",
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue