repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git]
/
server
/
serializers
/
rest
/
troupes
/
room-removed-user-strategy.js
blob
1a78f41fc0d9507fa1155d8225e293ab7793121e
1
'use strict'
;
2
3
class
RoomRemovedUserStrategy
{
4
contstructor
(
options
) {
5
this
.
userId
=
options
.
userId
||
options
.
currentUserId
;
6
}
7
8
preload
() {}
9
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
17
};
18
}
19
}
20
21
module
.
exports
=
RoomRemovedUserStrategy
;