mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
* Move query builders to sqlite package * Add transaction system * Wrap model resolvers in transaction * Add error return value for StringSliceToIntSlice * Update/refactor mutation resolvers * Convert query builders * Remove unused join types * Add stash id unit tests * Use WAL journal mode
11 lines
266 B
Go
11 lines
266 B
Go
package image
|
|
|
|
import "github.com/stashapp/stash/pkg/models"
|
|
|
|
func UpdateFileModTime(qb models.ImageWriter, id int, modTime models.NullSQLiteTimestamp) (*models.Image, error) {
|
|
return qb.Update(models.ImagePartial{
|
|
ID: id,
|
|
FileModTime: &modTime,
|
|
})
|
|
}
|