fix: requests pkey with questions

This commit is contained in:
trisua 2025-05-06 21:58:02 -04:00
parent 7114a7aae8
commit 78443cba13
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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,