-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
When I select an existing karaoke song that was added as ..., the form loads correctly and shows a disabled UPDATE button - which means I’m editing an existing entry.
But as soon as I change the song name, the button turns into ADD.
When I click it, nothing happens, and in the browser console I see a 500 Internal Server Error.
{"message":"insert into \"musicdex\".\"song\" (\"amUrl\", \"approver_id\", \"art\", \"available_at\", \"channel_id\", \"creator_id\", \"end\", \"id\", \"is_mv\", \"itunesid\", \"name\", \"original_artist\", \"start\", \"updated_at\", \"video_id\") values (DEFAULT, $1, DEFAULT, $2, $3, $4, $5, $6, DEFAULT, DEFAULT, $7, $8, $9, CURRENT_TIMESTAMP, $10) - duplicate key value violates unique constraint \"song_pkey\""}
So instead of updating, it tries to insert a duplicate song.
Steps:
- Select a song titled ... from the karaoke list
- The form shows up with a disabled UPDATE button
- Enter the correct song name
- The button changes to ADD
- Click it - nothing happens
Expected:
It should stay as UPDATE, and allow updating the song.
Metadata
Metadata
Assignees
Labels
No labels