fix: automatic search engine creation (#2172)
This commit is contained in:
1 parent
780efab80c
commit
8dd7fe297c
1 file changed
+4
-1
@@ -206,7 +206,10 @@ export const integrationRouter = createTRPCRouter({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.attemptSearchEngineCreation) {
|
if (
|
||||||
|
input.attemptSearchEngineCreation &&
|
||||||
|
integrationDefs[input.kind].category.flatMap((category) => category).includes("search")
|
||||||
|
) {
|
||||||
const icon = getIconUrl(input.kind);
|
const icon = getIconUrl(input.kind);
|
||||||
await ctx.db.insert(searchEngines).values({
|
await ctx.db.insert(searchEngines).values({
|
||||||
id: createId(),
|
id: createId(),
|
||||||
|
|||||||
Reference in new issue
Block a user