fix: function typo

This commit is contained in:
Methapon2001 2023-11-29 17:47:42 +07:00
parent 0691f29409
commit a206886be5
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
4 changed files with 4 additions and 4 deletions

View file

@ -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",
});

View file

@ -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",
});

View file

@ -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",
});

View file

@ -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",
});