Change the getter for type.
This commit is contained in:
parent
00b24efdc5
commit
2f3732a938
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ export default function (sequelize, DataTypes) {
|
|||
],
|
||||
getterMethods: {
|
||||
type() {
|
||||
return this.getDataValue('trackId') ? 'track' : 'album';
|
||||
return 'album';
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -29,7 +29,7 @@ export default function (sequelize, DataTypes) {
|
|||
],
|
||||
getterMethods: {
|
||||
type() {
|
||||
return this.getDataValue('trackId') ? 'track' : 'album';
|
||||
return 'track';
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue