From a7daf39dd7638c5d9d17cd198fe84119d930c395 Mon Sep 17 00:00:00 2001 From: Aminejv Date: Mon, 12 Sep 2022 12:36:17 +0100 Subject: [PATCH] fix(data/delete): delete objects from search index --- pages/api/data/delete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/data/delete.js b/pages/api/data/delete.js index e40c1a54..5e04fc19 100644 --- a/pages/api/data/delete.js +++ b/pages/api/data/delete.js @@ -139,7 +139,7 @@ export default async (req, res) => { await Data.deleteFilesByIds({ ownerId: id, ids }); - SearchManager.deleteFile(files); + SearchManager.deleteFile(objects); ViewerManager.hydratePartial(id, { slates: true, library: true });