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]
|
||||
switch field
|
||||
when "status"
|
||||
updates.status = Tracks.statuses\for_db user_input.status
|
||||
updates.status = tonumber user_input.status
|
||||
when "quality"
|
||||
updates.quality = Tracks.qualities\for_db user_input.quality
|
||||
updates.quality = tonumber user_input.quality
|
||||
when "tags"
|
||||
updates.tags = process_tags user_input.tags
|
||||
when "id"
|
||||
|
Reference in New Issue
Block a user