Skip to content

Commit

Permalink
fix publish_voicemail_saved
Browse files Browse the repository at this point in the history
corrects commit
d029732
(cherry picked from commit bf25313)
  • Loading branch information
lazedo committed Feb 21, 2015
1 parent c03491b commit bce0e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/whistle-1.0.0/src/api/wapi_notifications.erl
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ declare_exchanges() ->
-spec publish_voicemail_saved(api_terms(), ne_binary()) -> 'ok'.
publish_voicemail_saved(JObj) -> publish_voicemail_saved(JObj, ?DEFAULT_CONTENT_TYPE).
publish_voicemail_saved(Voicemail, ContentType) ->
{'ok', Payload} = wh_api:prepare_api_payload(Voicemail, ?VOICEMAIL_VALUES, fun ?MODULE:voicemail_saved/1),
{'ok', Payload} = wh_api:prepare_api_payload(Voicemail, ?VOICEMAIL_SAVED_VALUES, fun ?MODULE:voicemail_saved/1),
amqp_util:notifications_publish(?NOTIFY_VOICEMAIL_SAVED, Payload, ContentType).

-spec publish_voicemail(api_terms()) -> 'ok'.
Expand Down

0 comments on commit bce0e76

Please sign in to comment.