mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +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:
@@ -618,6 +618,9 @@ func testStudioStashIDs(ctx context.Context, t *testing.T, s *models.Studio) {
|
||||
return
|
||||
}
|
||||
|
||||
// #5563 - set the UpdatedAt field to epoch
|
||||
stashID.UpdatedAt = epochTime
|
||||
|
||||
assert.Equal(t, []models.StashID{stashID}, s.StashIDs.List())
|
||||
|
||||
// remove stash ids and ensure was updated
|
||||
|
||||
Reference in New Issue
Block a user