change key staffArray from code to id

This commit is contained in:
2022-04-02 10:17:17 +07:00
parent 7d83a98e21
commit e26819f1fb
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ class ListManagementController extends Controller {
Yii::$app->response->format = "json";
if (Yii::$app->request->post()) {
$data = Yii::$app->request->post();
$check = ListManagement::findOne(['code' => $data['code']]);
$check = ListManagement::findOne(['id' => $data['code']]);
if ($check)
return ["status" => false];
$features = common::requestToEngine("/get-feature", [