mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Initialise UpdatedAt for stash ids (#5680)
* Initialise imported zero time to epoch time Fixes null time error after importing stash id without updatedAt set * Update unit tests
This commit is contained in:
@@ -24,6 +24,8 @@ import (
|
||||
_ "github.com/stashapp/stash/pkg/sqlite/migrations"
|
||||
)
|
||||
|
||||
var epochTime = time.Unix(0, 0).UTC()
|
||||
|
||||
const (
|
||||
spacedSceneTitle = "zzz yyy xxx"
|
||||
)
|
||||
@@ -1028,8 +1030,9 @@ func getObjectDate(index int) *models.Date {
|
||||
|
||||
func sceneStashID(i int) models.StashID {
|
||||
return models.StashID{
|
||||
StashID: getSceneStringValue(i, "stashid"),
|
||||
Endpoint: getSceneStringValue(i, "endpoint"),
|
||||
StashID: getSceneStringValue(i, "stashid"),
|
||||
Endpoint: getSceneStringValue(i, "endpoint"),
|
||||
UpdatedAt: epochTime,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user