mirror of
https://github.com/stashapp/stash.git
synced 2025-12-15 04:44:28 +01: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
10 lines
266 B
Go
10 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,
|
|
})
|
|
}
|