Skip to content

Commit

Permalink
app: update source.interaction_count after successful reply
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Feb 27, 2020
1 parent 656ba79 commit 62c94a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions securedrop_client/api_jobs/uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def call_api(self, api_client: API, session: Session) -> str:
# Delete draft, add reply to replies table.
session.add(reply_db_object)
session.delete(draft_reply_db_object)
source.interaction_count += 1
session.add(source)
session.commit()

return reply_db_object.uuid
Expand Down

0 comments on commit 62c94a8

Please sign in to comment.