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