Applied style rules to genocide all \t characters
This commit is contained in:
@@ -10,7 +10,7 @@ const dbVersionToGitVersion = {
|
||||
|
||||
const getVersion = new ValidatedMethod({
|
||||
name: 'admin.getVersion',
|
||||
validate: null,
|
||||
validate: null,
|
||||
mixins: [RateLimiterMixin],
|
||||
rateLimit: {
|
||||
numRequests: 5,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Migrations } from 'meteor/percolate:migrations';
|
||||
|
||||
const migrateTo = new ValidatedMethod({
|
||||
name: 'admin.migrateTo',
|
||||
validate: new SimpleSchema({
|
||||
validate: new SimpleSchema({
|
||||
version: {
|
||||
type: SimpleSchema.oneOf(
|
||||
SimpleSchema.Integer,
|
||||
@@ -19,7 +19,7 @@ const migrateTo = new ValidatedMethod({
|
||||
numRequests: 1,
|
||||
timeInterval: 10000,
|
||||
},
|
||||
run({version}) {
|
||||
run({ version }) {
|
||||
if (Meteor.isClient) return;
|
||||
assertAdmin(this.userId);
|
||||
Migrations.migrateTo(version);
|
||||
|
||||
@@ -4,7 +4,7 @@ import { assertAdmin } from '/imports/api/sharing/sharingPermissions.js';
|
||||
|
||||
const validateDatabase = new ValidatedMethod({
|
||||
name: 'validateDatabase',
|
||||
validate: null,
|
||||
validate: null,
|
||||
mixins: [RateLimiterMixin],
|
||||
rateLimit: {
|
||||
numRequests: 1,
|
||||
@@ -23,8 +23,8 @@ const validateDatabase = new ValidatedMethod({
|
||||
const schema = collection.instance.simpleSchema(doc);
|
||||
let cleanDoc = schema.clean(doc);
|
||||
try {
|
||||
schema.validate(cleanDoc, {modifier: false});
|
||||
} catch (e){
|
||||
schema.validate(cleanDoc, { modifier: false });
|
||||
} catch (e) {
|
||||
console.log(collection.name, doc._id, e.message || e.reason || e.toString());
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user