diff options
author | 2017-09-06 19:47:54 +0300 | |
---|---|---|
committer | 2017-09-06 19:47:54 +0300 | |
commit | fc2702ba260b7a8705ee9f2d1f606af8dfa768da (patch) | |
tree | 1a9be5648c0148a0624de550351b5dfe75b6c5d4 /ui/imports/api/configurations/server | |
parent | 7e0fce9122cc61aef397c7a4e2780fb018404513 (diff) |
ui updates
Change-Id: I2d3f87e34a74ce21bbb9e3df989b6527337b7228
Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'ui/imports/api/configurations/server')
-rw-r--r-- | ui/imports/api/configurations/server/publications.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ui/imports/api/configurations/server/publications.js b/ui/imports/api/configurations/server/publications.js new file mode 100644 index 0000000..fe9f6fd --- /dev/null +++ b/ui/imports/api/configurations/server/publications.js @@ -0,0 +1,21 @@ +///////////////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others / +// / +// All rights reserved. This program and the accompanying materials / +// are made available under the terms of the Apache License, Version 2.0 / +// which accompanies this distribution, and is available at / +// http://www.apache.org/licenses/LICENSE-2.0 / +///////////////////////////////////////////////////////////////////////////////////////// +import { Meteor } from 'meteor/meteor'; + +import { Configurations } from '../configurations.js'; + +Meteor.publish('configurations?user', function () { + console.log('server subscribtion: configurations?user'); + + let userId = this.userId; + + let query = { user_id: userId }; + console.log('-query: ', query); + return Configurations.find(query); +}); |