remove unused WeCom backend integration

This commit is contained in:
inman
2026-07-23 18:44:54 +08:00
parent 4b3734f988
commit a284fbe3f3
11 changed files with 6 additions and 1022 deletions

View File

@@ -9,7 +9,6 @@ import { createHomeModuleSnapshot, DEFAULT_HOME_MODULES } from "../src/home-modu
import { collectImageUrls, materializeImageUrls } from "../src/media-migration.ts";
import { mediaStorage } from "../src/media-storage.ts";
import { DEFAULT_SEARCH_PAGE_CONFIG, SEARCH_PAGE_CONFIG_ID } from "../src/search-page.ts";
import { getWecomContactWayConfigDefaults } from "../src/wecom.ts";
type SourceProduct = {
id: number;
@@ -115,7 +114,6 @@ async function main() {
const seededSearchPage = await materializeImageUrls(DEFAULT_SEARCH_PAGE_CONFIG);
await prisma.auditLog.deleteMany();
await prisma.wecomExternalContact.deleteMany();
await prisma.siteVersion.deleteMany();
await prisma.homeModule.deleteMany();
await prisma.searchPageConfig.deleteMany();
@@ -137,13 +135,6 @@ async function main() {
await prisma.destination.deleteMany();
await prisma.mediaAsset.deleteMany();
const wecomDefaults = getWecomContactWayConfigDefaults();
await prisma.wecomContactWay.upsert({
where: { configId: wecomDefaults.configId },
update: {},
create: wecomDefaults,
});
await prisma.homeModule.createMany({
data: seededHomeModules.map((module) => ({
...module,