mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-23 10:26:44 +00:00
GODT-35: New pmapi client and manager using resty
This commit is contained in:
@ -18,10 +18,12 @@
|
||||
package fakeapi
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/ProtonMail/proton-bridge/pkg/pmapi"
|
||||
)
|
||||
|
||||
func (api *FakePMAPI) GetEvent(eventID string) (*pmapi.Event, error) {
|
||||
func (api *FakePMAPI) GetEvent(_ context.Context, eventID string) (*pmapi.Event, error) {
|
||||
if err := api.checkAndRecordCall(GET, "/events/"+eventID, nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user