Fixing messages
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 37s
Music Collection CI Workflow / test (./frontend) (push) Failing after 37s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Has been skipped
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been skipped
Music Collection CI Workflow / deploy (push) Has been skipped
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 37s
Music Collection CI Workflow / test (./frontend) (push) Failing after 37s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Has been skipped
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been skipped
Music Collection CI Workflow / deploy (push) Has been skipped
This commit is contained in:
parent
4e4c048f84
commit
5a53b93624
@ -46,7 +46,7 @@ export default function Page() {
|
|||||||
const formData = new FormData(event.currentTarget);
|
const formData = new FormData(event.currentTarget);
|
||||||
try {
|
try {
|
||||||
if (formData.get('id') == "") {
|
if (formData.get('id') == "") {
|
||||||
const result = 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")}: ${result}`, true);
|
||||||
@ -55,7 +55,7 @@ export default function Page() {
|
|||||||
})
|
})
|
||||||
.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")}: ${result}`, false);});
|
||||||
} else {
|
} else {
|
||||||
const result = 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")}: ${result}`, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user