weird tidal api
This commit is contained in:
@@ -37,7 +37,7 @@ export class TidalService extends BaseService<TidalClient> {
|
|||||||
const response = await this.getClient().get<TidalGetCurrent>("current");
|
const response = await this.getClient().get<TidalGetCurrent>("current");
|
||||||
|
|
||||||
return this.getSuccessfulResult(
|
return this.getSuccessfulResult(
|
||||||
response.volume * 100, // * 100 because it's a decimal and we want a percentage
|
(response.volume * 100).toFixed(), // * 100 because it's a decimal and we want a percentage
|
||||||
);
|
);
|
||||||
} catch {
|
} catch {
|
||||||
const error_message = "error getting volume from tidal";
|
const error_message = "error getting volume from tidal";
|
||||||
|
|||||||
Reference in New Issue
Block a user