refactor: remove unexported fetchMessage

This commit is contained in:
James Houlahan
2020-04-17 11:46:09 +02:00
parent 1c83cc9754
commit 49a64a656c
3 changed files with 2 additions and 10 deletions

View File

@ -37,7 +37,7 @@ func (storeMailbox *Mailbox) GetMessage(apiID string) (*Message, error) {
// FetchMessage fetches the message with the given `apiID`, stores it in the database, and returns a new store message
// wrapping it.
func (storeMailbox *Mailbox) FetchMessage(apiID string) (*Message, error) {
msg, err := storeMailbox.store.fetchMessage(apiID)
msg, err := storeMailbox.api().GetMessage(apiID)
if err != nil {
return nil, err
}