Fix no table main found

This commit is contained in:
Fransolet Thomas 2023-02-20 16:14:21 +01:00
parent 67a228d2e6
commit e3a2fc0e45

View File

@ -143,7 +143,7 @@ class DatabaseHelper {
var test = await DatabaseHelper.instance.queryWithColumnId(type, info[columnId].toString());
if((type == DatabaseTableType.main && test != null) || (type != DatabaseTableType.main && test.isNotEmpty)) { //test!.where((t) => info[columnId] == t.id).isNotEmpty
if((type == DatabaseTableType.main && test.isNotEmpty) || (type != DatabaseTableType.main && test.isNotEmpty)) { //test!.where((t) => info[columnId] == t.id).isNotEmpty
if(type != DatabaseTableType.main) {
//print("UPDATE $type - length before ${test.length}");
print("UPDATE $type");