GetByServerID fetches the entities.Discord by the serverID
(ctx context.Context, serverID string)
| 48 | |
| 49 | // GetByServerID fetches the entities.Discord by the serverID |
| 50 | func (service *DiscordService) GetByServerID(ctx context.Context, serverID string) (*entities.Discord, error) { |
| 51 | ctx, span, _ := service.tracer.StartWithLogger(ctx, service.logger) |
| 52 | defer span.End() |
| 53 | return service.repository.FindByServerID(ctx, serverID) |
| 54 | } |
| 55 | |
| 56 | // DeleteAllForUser deletes all entities.Discord for an entities.UserID. |
| 57 | func (service *DiscordService) DeleteAllForUser(ctx context.Context, userID entities.UserID) error { |
no test coverage detected