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) {