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
Merge branch 'hotfix/21.56.9' into master
[gitter.git]
/
server
/
serializers
/
rest
/
user-group-favourites-strategy.js
blob
3a447344440fde8b63d208633c2ebc377938f5b4
1
'use strict'
;
2
3
class
UserGroupFavouritesStrategy
{
4
preload
() {}
5
6
map
(
item
) {
7
return
{
8
id
:
item
.
id
||
item
.
_id
,
9
userId
:
item
.
userId
,
10
favs
:
item
.
favs
11
};
12
}
13
}
14
15
module
.
exports
=
UserGroupFavouritesStrategy
;