fix outlet, fix category, fix printer
This commit is contained in:
@@ -53,6 +53,7 @@ class AuthLocalDataProvider {
|
||||
try {
|
||||
await _sharedPreferences.remove(LocalStorageKey.token);
|
||||
await _sharedPreferences.remove(LocalStorageKey.user);
|
||||
await _sharedPreferences.remove(LocalStorageKey.outlet);
|
||||
} catch (e) {
|
||||
log('deleteAllAuthError', name: _logName, error: e);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ class CategoryDto with _$CategoryDto {
|
||||
'name': name,
|
||||
'description': description,
|
||||
'business_type': businessType,
|
||||
'order': order,
|
||||
'sort_order': order,
|
||||
'metadata': metadata != null ? jsonEncode(metadata) : null,
|
||||
'created_at': createdAt,
|
||||
'updated_at': updatedAt,
|
||||
|
||||
@@ -247,6 +247,11 @@ class PrinterRepository implements IPrinterRepository {
|
||||
);
|
||||
}
|
||||
|
||||
log(
|
||||
'Printer connected to bluetooth: ${printer.name}, ${printer.address}',
|
||||
name: _logName,
|
||||
);
|
||||
|
||||
bool printResult = await _printBluetooth(printData);
|
||||
if (!printResult) {
|
||||
FirebaseCrashlytics.instance.recordError(
|
||||
|
||||
Reference in New Issue
Block a user