fix: function typo
This commit is contained in:
parent
0691f29409
commit
a206886be5
4 changed files with 4 additions and 4 deletions
|
|
@ -139,7 +139,7 @@ export class CabinetController extends Controller {
|
|||
await esClient.update({
|
||||
index: DEFAULT_INDEX!,
|
||||
id: data._id,
|
||||
doc: { pathname: destination, path: destination.split("/").splice(0, -1).join("/") },
|
||||
doc: { pathname: destination, path: destination.split("/").slice(0, -1).join("/") },
|
||||
refresh: "wait_for",
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ export class DrawerController extends Controller {
|
|||
await esClient.update({
|
||||
index: DEFAULT_INDEX!,
|
||||
id: data._id,
|
||||
doc: { pathname: destination, path: destination.split("/").splice(0, -1).join("/") },
|
||||
doc: { pathname: destination, path: destination.split("/").slice(0, -1).join("/") },
|
||||
refresh: "wait_for",
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ export class FolderController extends Controller {
|
|||
await esClient.update({
|
||||
index: DEFAULT_INDEX!,
|
||||
id: data._id,
|
||||
doc: { pathname: destination, path: destination.split("/").splice(0, -1).join("/") },
|
||||
doc: { pathname: destination, path: destination.split("/").slice(0, -1).join("/") },
|
||||
refresh: "wait_for",
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ export class SubFolderController extends Controller {
|
|||
await esClient.update({
|
||||
index: DEFAULT_INDEX!,
|
||||
id: data._id,
|
||||
doc: { pathname: destination, path: destination.split("/").splice(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