Skip to content

Commit 9d1b9d3

Browse files
committed
worked on unpublished features
1 parent f13d867 commit 9d1b9d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/controllers/marketplaceController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const marketplaceController: MarketplaceController = {
4747

4848
const noPub = {...project}
4949
delete noPub.published;
50+
delete noPub._id;
5051
const publishedProject = await Projects.findOneAndUpdate
5152
( // looks in projects collection for project by Mongo id
5253
{ _id },

0 commit comments

Comments
 (0)