Skip to content

Commit

Permalink
KAZOO-3252: Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Defebvre committed Jan 27, 2015
1 parent e368c21 commit 7f8e478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions applications/crossbar/src/modules/cb_notifications.erl
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ read_template(Context, Id, Accept) ->
lager:debug("found attachment ~s in ~s", [AttachmentName, Id]),

cb_context:add_resp_headers(
read_account_attachement(Context, Id, AttachmentName)
read_account_attachment(Context, Id, AttachmentName)
,[{<<"Content-Disposition">>, attachment_filename(Id, Accept)}
,{<<"Content-Type">>, wh_json:get_value(<<"content_type">>, Meta)}
,{<<"Content-Length">>, wh_json:get_value(<<"length">>, Meta)}
Expand All @@ -702,8 +702,8 @@ read_system_attachment(Context, DocId, Name) ->
{'ok', MasterAccountDb} = whapps_util:get_master_account_db(),
crossbar_doc:load_attachment(DocId, Name, cb_context:set_account_db(Context, MasterAccountDb)).

-spec read_account_attachement(cb_context:context(), ne_binary(), ne_binary()) -> cb_context:context().
read_account_attachement(Context, DocId, Name) ->
-spec read_account_attachment(cb_context:context(), ne_binary(), ne_binary()) -> cb_context:context().
read_account_attachment(Context, DocId, Name) ->
Context1 = crossbar_doc:load_attachment(DocId, Name, Context),
case {cb_context:resp_error_code(Context1)
,cb_context:resp_status(Context1)
Expand Down

0 comments on commit 7f8e478

Please sign in to comment.