Permalink
Browse files

WHISTLE-788: add account information to template props for low_balance

  • Loading branch information...
James Aimonetti
James Aimonetti committed Feb 4, 2012
1 parent 09f2760 commit a71f4913967e8bea6c6397a2ef79df1b428abbeb
Showing with 2 additions and 1 deletion.
  1. +2 −1 whistle_apps/apps/notify/src/notify_low_balance.erl
@@ -82,8 +82,9 @@ handle_req(JObj, _Props) ->
%% @end
%%--------------------------------------------------------------------
-spec create_template_props/2 :: (wh_json:json_object(), wh_json:json_objects()) -> proplist().
-create_template_props(Event, _Account) ->
+create_template_props(Event, Account) ->
[{<<"current_balance">>, notify_util:json_to_template_props(Event)}
+ ,{<<"account">>, notify_util:json_to_template_props(Account)}
].
%%--------------------------------------------------------------------

0 comments on commit a71f491

Please sign in to comment.