Skip to content

Can’t edit existing karaoke songs - “ADD” button gives error #828

@tachitsuteto

Description

@tachitsuteto

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.

Image

But as soon as I change the song name, the button turns into ADD.

Image

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:

  1. Select a song titled ... from the karaoke list
  2. The form shows up with a disabled UPDATE button
  3. Enter the correct song name
  4. The button changes to ADD
  5. Click it - nothing happens

Expected:
It should stay as UPDATE, and allow updating the song.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions