Change the getter for type.

This commit is contained in:
Renato "Lond" Cerqueira 2016-12-17 14:13:33 +01:00 committed by Jonathan Cremin
parent 00b24efdc5
commit 2f3732a938
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ export default function (sequelize, DataTypes) {
],
getterMethods: {
type() {
return this.getDataValue('trackId') ? 'track' : 'album';
return 'album';
},
},
});

View file

@ -29,7 +29,7 @@ export default function (sequelize, DataTypes) {
],
getterMethods: {
type() {
return this.getDataValue('trackId') ? 'track' : 'album';
return 'track';
},
},
});