blob: 4a6c508334d9adc95d888ebe52606e0ccd62a73f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { check } from 'meteor/check';
import * as R from 'ramda';
import { ScheduledScans } from '../scheduled-scans';
Meteor.methods({
'scheduledScansFind?env': function (env) {
console.log('method server: scheduledScansFind?env', R.toString(env));
check(env, String);
this.unblock();
let query = { environment: env };
let scheduledScan = ScheduledScans.findOne(query, {});
return {
item: scheduledScan
};
}
});
|