Merge branch 'hotfix/21.56.9' into master
[gitter.git] / server / handlers / snapshots / user-theme-snapshot.js
blob52f1101485546c865e371be93eec277e6b82ac58
1 'use strict';
3 var Promise = require('bluebird');
4 var userSettingsService = require('gitter-web-user-settings');
6 module.exports = Promise.method(function getSnapshotsForPageContext(req) {
7 if (!req.user) return {};
9 return userSettingsService.getUserSettings(req.user._id, 'userTheme').then(function(result) {
10 return result || {};
11 });
12 });