Skip to content

Commit 4658258

Browse files
committed
Glocke vom Aktivitätsindex entkoppeln
demokratie-live/democracy-client#245
1 parent ab5258e commit 4658258

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/graphql/resolvers/Notification.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* eslint no-param-reassign: 0 */
33

44
import _ from 'lodash';
5-
import Activity from './Activity';
65

76
export default {
87
Query: {
@@ -56,20 +55,11 @@ export default {
5655
return user.notificationSettings;
5756
},
5857

59-
toggleNotification: async (
60-
parent,
61-
{ procedureId },
62-
{ user, ProcedureModel, ActivityModel },
63-
) => {
58+
toggleNotification: async (parent, { procedureId }, { user, ProcedureModel }) => {
6459
if (!user) {
6560
throw new Error('no Auth');
6661
}
6762
const procedure = await ProcedureModel.findOne({ procedureId });
68-
await Activity.Mutation.increaseActivity(
69-
parent,
70-
{ procedureId },
71-
{ ProcedureModel, ActivityModel, user },
72-
);
7363

7464
const index = user.notificationSettings.procedures.indexOf(procedure._id);
7565
let notify;

0 commit comments

Comments
 (0)