feat: store files as "original.csv" by default

This commit is contained in:
Paul Bienkowski 2020-12-13 20:46:40 +01:00 committed by uwewoessner
parent 0edb1cc8eb
commit 1121098977

View file

@ -64,7 +64,7 @@ class Track extends mongoose.Model {
async generateOriginalFilePath() { async generateOriginalFilePath() {
await this.populate('author').execPopulate(); 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) { isVisibleTo(user) {