From 2c8265d477026c50e0c29bb103207535a1574476 Mon Sep 17 00:00:00 2001 From: amber <> Date: Sun, 10 Nov 2024 19:33:22 +0800 Subject: [PATCH] fix: rollback schema --- services/item/database/production/init.js | 2 -- services/wishlist/database/production/1-schema.js | 1 - 2 files changed, 3 deletions(-) diff --git a/services/item/database/production/init.js b/services/item/database/production/init.js index 9abe5f69..7b1cf91c 100644 --- a/services/item/database/production/init.js +++ b/services/item/database/production/init.js @@ -1,6 +1,4 @@ /* eslint-disable no-undef */ -db = db.getSiblingDB('nshm_item'); - db.createCollection("items"); db.items.createIndex({ name: "text", description: "text" }); diff --git a/services/wishlist/database/production/1-schema.js b/services/wishlist/database/production/1-schema.js index 9e2cc430..026f5248 100644 --- a/services/wishlist/database/production/1-schema.js +++ b/services/wishlist/database/production/1-schema.js @@ -1,4 +1,3 @@ -db = db.getSiblingDB('nshm_wishlist'); // Create 'wishlist' collection (if it doesn't exist yet) db.createCollection("wishlist");