Skip to content

Commit

Permalink
Merge branch 'consumer'
Browse files Browse the repository at this point in the history
# Conflicts:
#	producer/internal/entity/proto/access_log.pb.go
  • Loading branch information
slowhigh committed Feb 2, 2024
2 parents cd2d2fe + 41a4e69 commit 7e4fd48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions consumer/internal/adapter/controller/sub/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ func NewController(mu message.MessageUsecase) Controller {
}

func (c Controller) ConsumeAccessLog(dto dto.AccessLogDto) bool {
accessLog := entity.AccessLog{
return c.msgUsecase.CreateAccessLog(entity.AccessLog{
Timestamp: dto.Timestamp,
IsNormalMode: dto.IsNormalMode,
IsLogin: dto.IsLogin,
UserName: dto.UserName,
DeviceName: dto.DeviceName,
Ip: dto.Ip,
}
return c.msgUsecase.CreateAccessLog(accessLog)
})
}

0 comments on commit 7e4fd48

Please sign in to comment.