Skip to content

Commit

Permalink
Export date field (won't affect importing regardless)
Browse files Browse the repository at this point in the history
  • Loading branch information
paramsiddharth committed Jul 17, 2021
1 parent 8d3bb54 commit f208a0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controllers/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ const exportTemplate = async (req, res) => {
const exportedObj = { ...template._doc };
const propsToPrune = [
'_id',
'__v',
'date'
'__v'
];
for (const prop of propsToPrune)
if (exportedObj[prop]) delete exportedObj[prop];
Expand Down

0 comments on commit f208a0d

Please sign in to comment.