From 3667f4a3fba302b519e30218d99fe44e5962e68e Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Tue, 15 Sep 2020 01:55:32 +0300 Subject: [PATCH] tags: expose findTagByName() as a public function --- backend/src/plugins/Tags/TagsPlugin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/plugins/Tags/TagsPlugin.ts b/backend/src/plugins/Tags/TagsPlugin.ts index 49a5a284..3ee41bf9 100644 --- a/backend/src/plugins/Tags/TagsPlugin.ts +++ b/backend/src/plugins/Tags/TagsPlugin.ts @@ -18,6 +18,7 @@ import { convertDelayStringToMS } from "../../utils"; import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin"; import { mapToPublicFn } from "../../pluginUtils"; import { renderTagBody } from "./util/renderTagBody"; +import { findTagByName } from "./util/findTagByName"; const defaultOptions: PluginOptions = { config: { @@ -67,6 +68,7 @@ export const TagsPlugin = zeppelinPlugin()("tags", { public: { renderTagBody: mapToPublicFn(renderTagBody), + findTagByName: mapToPublicFn(findTagByName), }, onLoad(pluginData) {