Skip to content

Commit

Permalink
fix: getLyrics() only working when signed-in
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Feb 6, 2022
1 parent 0c9f713 commit 2b5027e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function engage(session, engagement_type, args = {}) {
* @returns {object} { success: boolean, status_code: number, data: object } | { success: boolean, status_code: number, message: string }
*/
async function browse(session, action_type, args = {}) {
if (!session.logged_in) throw new Error('You are not signed-in');
if (!session.logged_in && action_type != 'lyrics') throw new Error('You are not signed-in');

let data;
switch (action_type) { // TODO: Handle more actions
Expand Down

0 comments on commit 2b5027e

Please sign in to comment.