We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be81a9e commit 86e05bfCopy full SHA for 86e05bf
1 file changed
workers/release/src/index.ts
@@ -179,17 +179,23 @@ export default class ReleaseWorker extends Worker {
179
const fileInfo = await this.saveFile(map);
180
181
/**
182
- * Remove 'content' and save id of saved file instead
+ * Save id of saved file instead
183
*/
184
map._id = fileInfo._id;
185
- delete map.content;
186
187
return map;
188
} catch (error) {
189
this.logger.error(`Map ${map.mapFileName} was not saved: ${error}`);
190
}
191
}));
192
+ /**
193
+ * Delete file content after it is saved to the GridFS
194
+ */
195
+ savedFiles.forEach(file => {
196
+ delete file.content;
197
+ })
198
+
199
200
* Filter unsaved maps
201
0 commit comments