Browse Source

Merge pull request '更換USER CLA刪除查詢逻辑' (#67) from KingChan/forgeplus:chenjing into standalone_develop

pull/343/head
KingChan 3 years ago
parent
commit
962c2bb04d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/users/clas_controller.rb

+ 1
- 1
app/controllers/users/clas_controller.rb View File

@@ -23,7 +23,7 @@ class Users::ClasController < Users::BaseController
end end


def destroy def destroy
@user_cla = current_user.user_clas.find_by(cla_id: params[:cla_id])
@user_cla = current_user.user_clas.find params[:id]
@user_cla.update_attributes(state: 2) @user_cla.update_attributes(state: 2)
render_ok render_ok
end end


Loading…
Cancel
Save