feat(guides) : add safer publishing and discovery
CI / Verify (push) Successful in 1m35s
CI / Build immutable images and deploy (push) Successful in 5m27s

This commit is contained in:
2026-09-19 13:32:57 +07:00 Unverified
parent 6698dc1302
commit 9896e8a4ad
27 changed files with 3213 additions and 108 deletions
+1 -9
View File
@@ -1,6 +1,6 @@
import "server-only";
import { and, asc, eq } from "drizzle-orm";
import { asc, eq } from "drizzle-orm";
import { getDb } from "@/db";
import {
@@ -12,7 +12,6 @@ import {
import {
glossaryAliasInputSchema,
normalizeGlossaryAlias,
type GlossaryKind,
} from "@/lib/glossary";
const catalogTables = {
@@ -53,10 +52,3 @@ export async function deleteGlossaryAlias(id: string) {
if (!deleted) throw new Error("ไม่พบ Shortcut");
return deleted;
}
export async function aliasesForItem(kind: GlossaryKind, catalogKey: string) {
return getDb().select().from(glossaryAliases).where(and(
eq(glossaryAliases.kind, kind),
eq(glossaryAliases.catalogKey, catalogKey),
));
}