feat: publish complete

This commit is contained in:
Rogee
2024-12-05 18:57:49 +08:00
parent e11924ea8a
commit 9f9d11f621
7 changed files with 40 additions and 16 deletions

View File

@@ -59,7 +59,7 @@ func (d *StoreMedias) RunE(targetPath string) error {
return errors.Wrap(err, "uuid from bytes")
}
if err := d.mediasSvc.PublishTenantMedia(context.Background(), 1, u, item.Name); err != nil {
if err := d.mediasSvc.PublishTenantMedia(context.Background(), 1, u, item.Name, item.Price); err != nil {
return errors.Wrapf(err, "PublishTenant: %+v", item)
}