Skip to content

Commit

Permalink
Update apps/meteor/app/lib/server/methods/saveSettings.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Matheus Barbosa Silva <[email protected]>
  • Loading branch information
MartinSchoeler and matheusbsilva137 authored Jun 12, 2024
1 parent 8ae7fea commit e947932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/lib/server/methods/saveSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Meteor.methods<ServerMethods>({
break;
case 'int':
check(value, Number);
if (Number.isNaN(value)) {
if (!Number.isInteger(value)) {
throw new Meteor.Error(`Invalid setting value ${value}`, 'Invalid setting value', {
method: 'saveSettings',
});
Expand Down

0 comments on commit e947932

Please sign in to comment.