remove unused WeCom backend integration
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user