WIP: add missing handlers, services nd repositories
This commit is contained in:
@@ -66,11 +66,10 @@ func (repository *MediaActorRepository) Add(context context.Context, url string)
|
||||
}
|
||||
|
||||
func (repository *MediaActorRepository) Delete(context context.Context, id string) error {
|
||||
var actor = models.MediaActor{ID: id}
|
||||
slog.Info("MediaActorRepository#Delete", "id", id)
|
||||
result := repository.db.Delete(&actor)
|
||||
if result.Error != nil {
|
||||
slog.Info("SportRepository#Delete", "error", result.Error.Error())
|
||||
_, err := repository.db.NewDelete().Model((*models.MediaActor)(nil)).Where("id = ?", id).Exec(context)
|
||||
if err != nil {
|
||||
slog.Info("MediaArticleRepository#Delete", "error", err.Error())
|
||||
}
|
||||
return result.Error
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user