Skip to content

Commit

Permalink
Merge pull request #15 from goelaine/backendApiIssue
Browse files Browse the repository at this point in the history
Added backend api functions for to change 'resolve' status in backend
  • Loading branch information
goelaine authored Sep 22, 2024
2 parents 64913cd + 7261081 commit e8c5cf0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/api/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,13 @@ topicsAPI.bump = async (caller, { tid }) => {
await topics.markAsUnreadForAll(tid);
topics.pushUnreadCount(caller.uid);
};

topicsAPI.markResolved = async (caller, { tid }) => {
await topics.setTopicField(tid, 'resolved', true);
console.log('resolved pressed!');
};

topicsAPI.markUnresolved = async (caller, { tid }) => {
await topics.setTopicField(tid, 'resolved', false);
console.log('unresolved pressed!');
};

0 comments on commit e8c5cf0

Please sign in to comment.