Merge branch 'hotfix/21.56.9' into master
[gitter.git] / server / serializers / rest / uri-lookup-strategy.js
blobc89e662b0f58f970b87ecedd0cfe069fca7c55d2
1 'use strict';
3 class UriLookupStrategy {
4 contstructor(options) {
5 this.userId = options.userId || options.currentUserId;
8 preload() {}
10 map(item) {
11 return {
12 id: item.id || item._id,
13 uri: item.uri,
14 userId: item.userId,
15 troupeId: item.troupeId,
16 groupId: item.groupId
21 module.exports = UriLookupStrategy;