Skip to content

Commit 1c515e1

Browse files
committed
fix: merge conflict clean up
1 parent d66e667 commit 1c515e1

4 files changed

Lines changed: 71 additions & 2 deletions

File tree

lib/db/drift/shared_db/shared_database.g.dart

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/db/drift/shared_db/tables/shopin_bit_tickets.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class ShopInBitTickets extends Table {
1212

1313
IntColumn get category => intEnum<ShopInBitCategory>()();
1414
IntColumn get status => intEnum<ShopInBitOrderStatus>()();
15+
TextColumn get statusRaw => text().nullable()();
1516

1617
TextColumn get requestDescription => text()();
1718
TextColumn get deliveryCountry => text()();

lib/models/shopinbit/shopinbit_order_model.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ class ShopInBitOrderModel extends ChangeNotifier {
324324
)
325325
.toList();
326326

327-
static ShopInBitOrderModel fromIsarTicket(ShopInBitTicket ticket) {
328327
return ShopInBitOrderModel()
329328
.._displayName = ticket.displayName
330329
.._category = ticket.category

lib/services/shopinbit/shopinbit_orders_service.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ class ShopInBitOrdersService extends ChangeNotifier {
8282
final newStatus = ShopInBitOrderModel.statusFromTicketState(
8383
statusResp.value!.state,
8484
);
85-
if (model.status != newStatus) {
85+
model.statusRaw = statusResp.value!.stateRaw;
86+
if (model.status != newStatus && newStatus != null) {
8687
model.status = newStatus;
8788
changed = true;
8889
}

0 commit comments

Comments
 (0)