Skip to content

Commit

Permalink
fix small typeo
Browse files Browse the repository at this point in the history
  • Loading branch information
YazeedAlKhalaf committed Jan 16, 2025
1 parent 196b828 commit 5a0a862
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions falak/pkg/api/calendar/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type service struct {
calendarv1connect.UnimplementedCalendarServiceHandler
}

func (s *service) GetCalDAVAccount(ctx context.Context, r *connect.Request[calendarv1.GetCalDAVAccountRequest]) (*connect.Response[calendarv1.GetCalDAVAccountResponse], error) {
func (s *service) GetCalDAVAccount(ctx context.Context, r *connect.Request[calendarv1.GetCalDavAccountRequest]) (*connect.Response[calendarv1.GetCalDavAccountResponse], error) {
if err := s.pv.Validate(r.Msg); err != nil {
log.Ctx(ctx).Err(err).Msg("invalid request")
return nil, connect.NewError(connect.CodeInvalidArgument, err)
Expand All @@ -53,8 +53,8 @@ func (s *service) GetCalDAVAccount(ctx context.Context, r *connect.Request[calen
return nil, internalError
}

return &connect.Response[calendarv1.GetCalDAVAccountResponse]{
Msg: &calendarv1.GetCalDAVAccountResponse{
return &connect.Response[calendarv1.GetCalDavAccountResponse]{
Msg: &calendarv1.GetCalDavAccountResponse{
Username: calDAVAccount.Username,
Password: calDAVAccount.DecryptedPassword,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Created by Human on 14/01/2025.
//

extension Calendar_V1_GetCalDAVAccountResponse: Mockable {
static func makeMock() -> Calendar_V1_GetCalDAVAccountResponse {
var resp = Calendar_V1_GetCalDAVAccountResponse()
extension Calendar_V1_GetCalDavAccountResponse: Mockable {
static func makeMock() -> Calendar_V1_GetCalDavAccountResponse {
var resp = Calendar_V1_GetCalDavAccountResponse()
resp.username = "[email protected]"
resp.password = "some long password :D"

Expand Down

0 comments on commit 5a0a862

Please sign in to comment.