toRestFilter()

in src/app/work-items-filter.js [74:88]


  toRestFilter() {

    const withRingId = it => {
      const id = it.id;
      delete it.id;
      it.ringId = id;
    };

    const filter = this.toConfig();

    (filter.authors || []).forEach(withRingId);
    (filter.authorGroups || []).forEach(withRingId);

    return filter;
  }