feat: add syncrhonize typsense command

This commit is contained in:
2023-08-10 19:39:10 +02:00
parent d8f7ac38f1
commit eaa769f46e
3 changed files with 66 additions and 36 deletions

View File

@ -68,6 +68,18 @@ export const menus: Record<string, Menu> = {
return !!getCookie("session_cookie");
},
},
{
title: "Sync Typesense",
icon: "IconStarFilled",
cb: () => {
fetch("/api/query/sync", {
method: "POST",
});
},
visible: () => {
return !!getCookie("session_cookie");
},
},
addSeriesInfo,
createNewArticle,
createNewMovie,