feat: remove useless code
This commit is contained in:
parent
d229d741f4
commit
12604fe17e
@ -168,7 +168,6 @@ class SunoApi {
|
|||||||
make_instrumental?: boolean,
|
make_instrumental?: boolean,
|
||||||
wait_audio: boolean = false
|
wait_audio: boolean = false
|
||||||
): Promise<AudioInfo[]> {
|
): Promise<AudioInfo[]> {
|
||||||
const authToken = await this.getAuthToken();
|
|
||||||
const payload: any = {
|
const payload: any = {
|
||||||
make_instrumental: make_instrumental == true,
|
make_instrumental: make_instrumental == true,
|
||||||
mv: "chirp-v3-0",
|
mv: "chirp-v3-0",
|
||||||
@ -268,7 +267,6 @@ class SunoApi {
|
|||||||
* @returns A promise that resolves to an array of AudioInfo objects.
|
* @returns A promise that resolves to an array of AudioInfo objects.
|
||||||
*/
|
*/
|
||||||
public async get(songIds?: string[]): Promise<AudioInfo[]> {
|
public async get(songIds?: string[]): Promise<AudioInfo[]> {
|
||||||
const authToken = await this.getAuthToken();
|
|
||||||
let url = `${SunoApi.BASE_URL}/api/feed/`;
|
let url = `${SunoApi.BASE_URL}/api/feed/`;
|
||||||
if (songIds) {
|
if (songIds) {
|
||||||
url = `${url}?ids=${songIds.join(',')}`;
|
url = `${url}?ids=${songIds.join(',')}`;
|
||||||
@ -299,7 +297,6 @@ class SunoApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async get_credits(): Promise<object> {
|
public async get_credits(): Promise<object> {
|
||||||
const authToken = await this.getAuthToken();
|
|
||||||
const response = await this.client.get(`${SunoApi.BASE_URL}/api/billing/info/`);
|
const response = await this.client.get(`${SunoApi.BASE_URL}/api/billing/info/`);
|
||||||
return {
|
return {
|
||||||
credits_left: response.data.total_credits_left,
|
credits_left: response.data.total_credits_left,
|
||||||
|
Loading…
Reference in New Issue
Block a user