Logs: Replace status string literals with generic constants

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-10-21 15:08:10 +02:00
parent cd7fa6adca
commit 69c816d616
8 changed files with 27 additions and 22 deletions

View file

@ -202,7 +202,7 @@ func FindLink(linkUid string) *Link {
result := Link{}
if Db().Where("link_uid = ?", linkUid).First(&result).Error != nil {
event.AuditWarn([]string{"link %s", "not found"}, clean.Log(linkUid))
event.AuditWarn([]string{"link %s", status.NotFound}, clean.Log(linkUid))
return nil
}