Skip to content

Commit

Permalink
一处错误
Browse files Browse the repository at this point in the history
  • Loading branch information
xutl committed Sep 9, 2017
1 parent e84ddef commit 891c5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Question.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function afterSave($insert, $changedAttributes)
*/
public function afterDelete()
{
$this->user->userData->updateCounters(['questions' => -1]);
$this->user->extend->updateCounters(['questions' => -1]);
Answer::deleteAll(['question_id' => $this->id]);
parent::afterDelete();
}
Expand Down

0 comments on commit 891c5d5

Please sign in to comment.