We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 676c722 commit 5255b85Copy full SHA for 5255b85
services/votes/votes.class.ts
@@ -8,7 +8,8 @@ export default class Votes {
8
const which: 'left' | 'right' = data.which;
9
const { user } = params;
10
poll.contents[which].votes.push(user._id);
11
- return poll.save();
+ poll.save();
12
+ return poll.toObject();
13
}
14
return null;
15
0 commit comments