Skip to content

Commit

Permalink
Test corrections: Id initial values, model side #269
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCsabaToth committed Mar 6, 2023
1 parent 415e495 commit 2b9c702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/persistence/isar/record.dart
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ class RecordWithSport extends Record {
caloriesPerMinute,
}) : assert(sport != null),
super(
id: id,
activityId: activityId,
id: id ?? Isar.autoIncrement,
activityId: activityId ?? Isar.minId,
timeStamp: timeStamp,
distance: distance,
elapsed: elapsed,
Expand Down

0 comments on commit 2b9c702

Please sign in to comment.