Fixing messages
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 36s
Music Collection CI Workflow / test (./frontend) (push) Successful in 39s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 54s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m49s
Music Collection CI Workflow / deploy (push) Successful in 22s
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 36s
Music Collection CI Workflow / test (./frontend) (push) Successful in 39s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 54s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m49s
Music Collection CI Workflow / deploy (push) Successful in 22s
This commit is contained in:
parent
5a53b93624
commit
1520dfe4ba
@ -49,20 +49,20 @@ export default function Page() {
|
|||||||
await createAlbum(formData)
|
await createAlbum(formData)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
handleSnackbar(`Successfully created Album with ID ${formData.get("id")}: ${result}`, true);
|
handleSnackbar(`Successfully created Album with ID ${formData.get("id")}: ${response}`, true);
|
||||||
}
|
}
|
||||||
Promise.reject(response);
|
Promise.reject(response);
|
||||||
})
|
})
|
||||||
.catch(error => {handleSnackbar(`Failed to create Album with ID ${formData.get("id")}: ${result}`, false);});
|
.catch(error => {handleSnackbar(`Failed to create Album with ID ${formData.get("id")}: ${error}`, false);});
|
||||||
} else {
|
} else {
|
||||||
await updateAlbum(formData)
|
await updateAlbum(formData)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
handleSnackbar(`Successfully updated Album with ID ${formData.get("id")}: ${result}`, true);
|
handleSnackbar(`Successfully updated Album with ID ${formData.get("id")}: ${response}`, true);
|
||||||
}
|
}
|
||||||
Promise.reject(response);
|
Promise.reject(response);
|
||||||
})
|
})
|
||||||
.catch(error => {handleSnackbar(`Failed to update Album with ID ${formData.get("id")}: ${result}`, false);});
|
.catch(error => {handleSnackbar(`Failed to update Album with ID ${formData.get("id")}: ${error}`, false);});
|
||||||
}
|
}
|
||||||
revalidateAlbums();
|
revalidateAlbums();
|
||||||
const data = await getAlbums();
|
const data = await getAlbums();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user