Skip to content

Commit

Permalink
Fixing code in mod_inbox_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Janusz Jakubiec authored and Janusz Jakubiec committed Oct 21, 2021
1 parent 27740f7 commit ad71add
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/inbox/mod_inbox_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,22 @@ set_inbox_incr_unread(HostType, InboxEntryKey, Content, MsgId, Timestamp) ->
InboxEntryKey :: mod_inbox:entry_key(),
MsgId :: binary() | undefined.
reset_unread(HostType, InboxEntryKey, MsgId) ->
Args = [HostType, InboxEntryKey, MsgId],
Args = [HostType, InboxEntryKey, MsgId],
mongoose_backend:call_tracked(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, Args).

-spec get_inbox_unread(HostType, InboxEntryKey) -> {ok, integer()} when
HostType :: mongooseim:host_type(),
InboxEntryKey :: mod_inbox:entry_key().
get_inbox_unread(HostType, InboxEntryKey) ->
Args = [HostType, InboxEntryKey],
Args = [HostType, InboxEntryKey],
mongoose_backend:call_tracked(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, Args).

-spec get_entry_properties(HostType, InboxEntryKey) -> Ret when
HostType :: mongooseim:host_type(),
InboxEntryKey :: mod_inbox:entry_key(),
Ret :: mod_index:entry_properties().
get_entry_properties(HostType, InboxEntryKey) ->
Args = [HostType, InboxEntryKey],
Args = [HostType, InboxEntryKey],
mongoose_backend:call_tracked(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, Args).

-spec set_entry_properties(HostType, InboxEntryKey, Params) -> Ret when
Expand All @@ -168,11 +168,10 @@ get_entry_properties(HostType, InboxEntryKey) ->
Params :: mod_index:entry_properties(),
Ret :: mod_index:entry_properties() | {error, binary()}.
set_entry_properties(HostType, InboxEntryKey, Params) ->
Args = [HostType, InboxEntryKey, Params],
Args = [HostType, InboxEntryKey, Params],
mongoose_backend:call_tracked(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, Args).


callback_funs() ->
[get_inbox, set_inbox, set_inbox_incr_unread,
reset_unread, remove_inbox_row, clear_inbox, get_inbox_unread,
get_entry_properties, set_entry_properties, remove_domain].
get_entry_properties, set_entry_properties, remove_domain].

0 comments on commit ad71add

Please sign in to comment.