From 112109897713826e4aa5d177a0eee8d7ccdcf533 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Sun, 13 Dec 2020 20:46:40 +0100 Subject: [PATCH] feat: store files as "original.csv" by default --- src/models/Track.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Track.js b/src/models/Track.js index b57339d..738c5ee 100644 --- a/src/models/Track.js +++ b/src/models/Track.js @@ -64,7 +64,7 @@ class Track extends mongoose.Model { async generateOriginalFilePath() { await this.populate('author').execPopulate(); - this.originalFilePath = path.join('uploads', 'originals', this.author.username, this.slug, this.originalFileName); + this.originalFilePath = path.join('uploads', 'originals', this.author.username, this.slug, 'original.csv'); } isVisibleTo(user) {