mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor(mobile): Migrate durationInSeconds to durationMs (#26615)
This commit is contained in:
@@ -77,7 +77,7 @@ class MediumRepositoryContext {
|
||||
DateTime? deletedAt,
|
||||
AssetType? type,
|
||||
AssetVisibility? visibility,
|
||||
int? durationInSeconds,
|
||||
int? durationMs,
|
||||
int? width,
|
||||
int? height,
|
||||
bool? isFavorite,
|
||||
@@ -102,7 +102,7 @@ class MediumRepositoryContext {
|
||||
ownerId: Value(TestUtils.uuid(ownerId)),
|
||||
visibility: Value(visibility ?? AssetVisibility.timeline),
|
||||
deletedAt: Value(deletedAt),
|
||||
durationInSeconds: Value(durationInSeconds ?? 0),
|
||||
durationMs: Value(durationMs ?? 0),
|
||||
width: Value(width ?? _random.nextInt(1000)),
|
||||
height: Value(height ?? _random.nextInt(1000)),
|
||||
isFavorite: Value(isFavorite ?? false),
|
||||
@@ -189,7 +189,7 @@ class MediumRepositoryContext {
|
||||
double? longitude,
|
||||
int? width,
|
||||
int? height,
|
||||
int? durationInSeconds,
|
||||
int? durationMs,
|
||||
int? orientation,
|
||||
DateTime? updatedAt,
|
||||
}) async {
|
||||
@@ -202,7 +202,7 @@ class MediumRepositoryContext {
|
||||
name: Value(name ?? 'local_$id.jpg'),
|
||||
height: Value(height ?? _random.nextInt(1000)),
|
||||
width: Value(width ?? _random.nextInt(1000)),
|
||||
durationInSeconds: Value(durationInSeconds ?? 0),
|
||||
durationMs: Value(durationMs ?? 0),
|
||||
orientation: Value(orientation ?? 0),
|
||||
updatedAt: Value(TestUtils.date(updatedAt)),
|
||||
checksum: _resolveUndefined(checksum, checksumOption, const Uuid().v4()),
|
||||
|
||||
Reference in New Issue
Block a user