Skip to content

Commit f160830

Browse files
committed
external-services-connector: use Helpers.isEmptyString
1 parent 9a29462 commit f160830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/external-services-connector/server/methods.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Meteor.methods
8282
check service, String
8383
check draftId, Match.Optional String
8484

85-
if body.trim().length is 0
85+
if Helpers.isEmptyString body
8686
throw new Meteor.Error 'no-content'
8787

8888
sendMessage subject, body, recipients, service, @userId

0 commit comments

Comments
 (0)