mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:29:15 +00:00
Handle photo not found case in API routes (#1201)
* Handle media not found issue * temporary run workflows for master pushes only; tests * revert temp workflow changes --------- Co-authored-by: Konstantin Koval
This commit is contained in:
@@ -14,6 +14,8 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
var ProcessSingleMediaFunc = ProcessSingleMedia
|
||||
|
||||
func ScanMedia(tx *gorm.DB, mediaPath string, albumId int, cache *scanner_cache.AlbumScannerCache) (*models.Media, bool, error) {
|
||||
mediaName := path.Base(mediaPath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user