prevent multiple notifications (#10524)

* WIP - prevent multiple notifications

* merge promises to one

* update test, iterate each user

* revert changes in `groups.js` - filter duplicate notifications in `convertNotificationsToSafeJson`
This commit is contained in:
negue
2018-07-30 16:11:56 +02:00
committed by Matteo Pagliazzi
parent c9465cbfdd
commit c8becbccb5
3 changed files with 53 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ import {
model as Group,
} from '../group';
import { defaults, map, flatten, flow, compact, uniq, partialRight } from 'lodash';
import { model as UserNotification } from '../userNotification';
import {defaults, map, flatten, flow, compact, uniq, partialRight} from 'lodash';
import {model as UserNotification} from '../userNotification';
import schema from './schema';
import payments from '../../libs/payments/payments';
import amazonPayments from '../../libs/payments/amazon';