fix: requests pkey with questions
This commit is contained in:
parent
7114a7aae8
commit
78443cba13
2 changed files with 2 additions and 2 deletions
|
@ -737,7 +737,7 @@ impl DataManager {
|
|||
}
|
||||
|
||||
if !question.is_global {
|
||||
self.delete_request(question.owner, question.id, &owner, false)
|
||||
self.delete_request(question.id, question.id, &owner, false)
|
||||
.await?;
|
||||
} else {
|
||||
self.incr_question_answer_count(data.context.answering)
|
||||
|
|
|
@ -388,7 +388,7 @@ impl DataManager {
|
|||
// create request
|
||||
if !data.is_global {
|
||||
self.create_request(ActionRequest::with_id(
|
||||
data.owner,
|
||||
data.id,
|
||||
data.receiver,
|
||||
ActionType::Answer,
|
||||
data.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue