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 });