Added !when command

This commit is contained in:
Damien Broqua 2019-12-25 12:47:09 +01:00
parent 6947fb843e
commit 4151ab95f8
6 changed files with 159 additions and 6 deletions

View file

@ -1,3 +1,5 @@
const formatString = require('../helpers/strings').formatString
class ArtistSong {
constructor (models) {
this.models = models
@ -49,11 +51,11 @@ class ArtistSong {
$or: [
{
type: 'artist',
value: currentSong.artist
value: formatString(currentSong.artist)
},
{
type: 'title',
value: currentSong.title
value: formatString(currentSong.title)
}
]
})