Skip to content

Commit

Permalink
[FIX] Message attachments not allowing float numbers (#14412)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and sampaiodiego committed Jul 21, 2019
1 parent 78052fc commit 051e993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/server/functions/sendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const validateAttachmentsFields = (attachmentField) => {
check(attachmentField, objectMaybeIncluding({
short: Boolean,
title: String,
value: Match.OneOf(String, Match.Integer, Boolean),
value: Match.OneOf(String, Number, Boolean),
}));

if (typeof attachmentField.value !== 'undefined') {
Expand Down

0 comments on commit 051e993

Please sign in to comment.