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

@@ -58,7 +58,7 @@ func StartImport(router *gin.RouterGroup) {
// Abort if there is not enough free storage to import new files.
if conf.FilesQuotaReached() {
event.AuditErr([]string{ClientIP(c), "session %s", "import files", "insufficient storage"}, s.RefID)
event.AuditErr([]string{ClientIP(c), "session %s", "import files", status.InsufficientStorage}, s.RefID)
Abort(c, http.StatusInsufficientStorage, i18n.ErrInsufficientStorage)
return
}