Adding catches#
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 30s
Music Collection CI Workflow / test (./frontend) (push) Successful in 36s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 51s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m48s
Music Collection CI Workflow / deploy (push) Successful in 24s
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 30s
Music Collection CI Workflow / test (./frontend) (push) Successful in 36s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 51s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m48s
Music Collection CI Workflow / deploy (push) Successful in 24s
This commit is contained in:
parent
dd6dac3c77
commit
aff2ed72d7
@ -6,6 +6,8 @@ export async function getAlbums() {
|
|||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15,6 +17,8 @@ export async function getAlbum(id: number) {
|
|||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,6 +36,8 @@ export async function createAlbum(formData: FormData) {
|
|||||||
})
|
})
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,6 +59,8 @@ export async function updateAlbum(formData: FormData) {
|
|||||||
}).then(response => {
|
}).then(response => {
|
||||||
console.log(response.json());
|
console.log(response.json());
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,6 +73,8 @@ export async function deleteAlbum(id: number) {
|
|||||||
})
|
})
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,6 +84,8 @@ export async function getSongs() {
|
|||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,6 +95,8 @@ export async function getSong(id: number) {
|
|||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,6 +116,8 @@ export async function createSong(formData: FormData) {
|
|||||||
})
|
})
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,6 +139,8 @@ export async function updateSong(formData: FormData) {
|
|||||||
})
|
})
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,5 +150,7 @@ export async function deleteSong(id: number) {
|
|||||||
headers: { "Content-Type": "application/json" }
|
headers: { "Content-Type": "application/json" }
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user