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 {
|
if !question.is_global {
|
||||||
self.delete_request(question.owner, question.id, &owner, false)
|
self.delete_request(question.id, question.id, &owner, false)
|
||||||
.await?;
|
.await?;
|
||||||
} else {
|
} else {
|
||||||
self.incr_question_answer_count(data.context.answering)
|
self.incr_question_answer_count(data.context.answering)
|
||||||
|
|
|
@ -388,7 +388,7 @@ impl DataManager {
|
||||||
// create request
|
// create request
|
||||||
if !data.is_global {
|
if !data.is_global {
|
||||||
self.create_request(ActionRequest::with_id(
|
self.create_request(ActionRequest::with_id(
|
||||||
data.owner,
|
data.id,
|
||||||
data.receiver,
|
data.receiver,
|
||||||
ActionType::Answer,
|
ActionType::Answer,
|
||||||
data.id,
|
data.id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue