refac: repository updates, image attachment and deletes report the domain not-found error for an unknown id, the same for articles, users and images, and the test fakes stop returning GORM errors

This commit is contained in:
fsylvain committed 2026-09-23 22:09:06 +02:00
1 parent 4278d96882
commit 6a2ca07b66
14 files changed
+553 -66

No files matched your search

+3
View File
@@ -1,10 +1,13 @@
package image
import (
"errors"
"io"
"time"
)
var ErrImageNotFound = errors.New("image not found")
type ImageInput struct {
Content io.Reader
Filename string