Merge branch 'hotfix/21.56.9' into master
[gitter.git] / server / serializers / rest / known-external-access-strategy.js
blobba42c85c0ac385d5374dff0c81fc03f9b66b9843
1 'use strict';
3 class KnownExternalAccessStrategy {
4 contstructor(options) {
5 this.userId = options.userId || options.currentUserId;
8 preload() {}
10 map(item) {
11 return {
12 id: item.id || item._id,
13 userId: item.userId,
14 type: item.type,
15 policyName: item.policyName,
16 linkPath: item.linkPath,
17 externalId: item.externalId,
18 accessTime: item.accessTime
23 module.exports = KnownExternalAccessStrategy;