mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Add fingerprint resolver (#4287)
* Refactor into internal/api/models.go * Add file fingerprint resolver
This commit is contained in:
@@ -133,10 +133,6 @@ type BaseFile struct {
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
func (f *BaseFile) FingerprintSlice() []Fingerprint {
|
||||
return f.Fingerprints
|
||||
}
|
||||
|
||||
// SetFingerprints sets the fingerprints of the file.
|
||||
// If a fingerprint of the same type already exists, it is overwritten.
|
||||
func (f *BaseFile) SetFingerprints(fp Fingerprints) {
|
||||
|
||||
Reference in New Issue
Block a user