Skip to content

Commit 891c5d5

Browse files
committed
一处错误
1 parent e84ddef commit 891c5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/Question.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function afterSave($insert, $changedAttributes)
227227
*/
228228
public function afterDelete()
229229
{
230-
$this->user->userData->updateCounters(['questions' => -1]);
230+
$this->user->extend->updateCounters(['questions' => -1]);
231231
Answer::deleteAll(['question_id' => $this->id]);
232232
parent::afterDelete();
233233
}

0 commit comments

Comments
 (0)