Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / server / serializers / rest / troupes / room-removed-user-strategy.js
blob1a78f41fc0d9507fa1155d8225e293ab7793121e
1 'use strict';
3 class RoomRemovedUserStrategy {
4 contstructor(options) {
5 this.userId = options.userId || options.currentUserId;
8 preload() {}
10 map(item) {
11 return {
12 id: item.id || item._id,
13 troupeId: item.troupeId,
14 userId: item.userId,
15 date: item.date,
16 flags: item.flags
21 module.exports = RoomRemovedUserStrategy;