so much for 'helpful enumerations'
This commit is contained in:
parent
3e37a90153
commit
cbd5e6819c
@ -28,9 +28,9 @@ update_track = (user_input) ->
|
|||||||
if user_input[field]
|
if user_input[field]
|
||||||
switch field
|
switch field
|
||||||
when "status"
|
when "status"
|
||||||
updates.status = Tracks.statuses\for_db user_input.status
|
updates.status = tonumber user_input.status
|
||||||
when "quality"
|
when "quality"
|
||||||
updates.quality = Tracks.qualities\for_db user_input.quality
|
updates.quality = tonumber user_input.quality
|
||||||
when "tags"
|
when "tags"
|
||||||
updates.tags = process_tags user_input.tags
|
updates.tags = process_tags user_input.tags
|
||||||
when "id"
|
when "id"
|
||||||
|
Reference in New Issue
Block a user