Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async delete(id: string): Promise {
const song = await super.delete(id);
return HistorySong.fromSong(song);
}
downVotes?: string[]
): Promise {
const song = await super.update(
id,
songId,
title,
url,
creatorId,
stationId,
duration,
thumbnail,
isPlayed,
upVotes,
downVotes
);
return HistorySong.fromSong(song);
}
public async findOne(id?: string): Promise {
const song = await super.findOne(id);
return HistorySong.fromSong(song);
}