Skip to content

Commit e947932

Browse files
Update apps/meteor/app/lib/server/methods/saveSettings.ts
Co-authored-by: Matheus Barbosa Silva <36537004+matheusbsilva137@users.noreply.github.com>
1 parent 8ae7fea commit e947932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/meteor/app/lib/server/methods/saveSettings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Meteor.methods<ServerMethods>({
8383
break;
8484
case 'int':
8585
check(value, Number);
86-
if (Number.isNaN(value)) {
86+
if (!Number.isInteger(value)) {
8787
throw new Meteor.Error(`Invalid setting value ${value}`, 'Invalid setting value', {
8888
method: 'saveSettings',
8989
});

0 commit comments

Comments
 (0)