We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae7fea commit e947932Copy full SHA for e947932
apps/meteor/app/lib/server/methods/saveSettings.ts
@@ -83,7 +83,7 @@ Meteor.methods<ServerMethods>({
83
break;
84
case 'int':
85
check(value, Number);
86
- if (Number.isNaN(value)) {
+ if (!Number.isInteger(value)) {
87
throw new Meteor.Error(`Invalid setting value ${value}`, 'Invalid setting value', {
88
method: 'saveSettings',
89
});
0 commit comments