return this.couchService.findAll(
      'notifications',
      findDocuments({ link: notifications.link, type: notifications.type , status: notifications.status, user: notifications.user })
    ).pipe(
      switchMap((res: any[]) => res.length === 0 ? this.couchService.updateDocument('notifications', notifications) : of({}))