fixed warning, because field ID is no longer existent
This commit is contained in:
@@ -86,14 +86,14 @@ class ExcursionDBHelper implements IDb{
|
||||
Future<void> addTemplate(Map<String, String> templates) async {
|
||||
var excursionDBClient = await dB;
|
||||
|
||||
final existingCID = await excursionDBClient.query(
|
||||
'excursionTemplates',
|
||||
where: 'ID = ?',
|
||||
whereArgs: [templates['ID']],
|
||||
);
|
||||
if (existingCID.isNotEmpty) {
|
||||
return;
|
||||
}
|
||||
// final existingCID = await excursionDBClient.query(
|
||||
// 'excursionTemplates',
|
||||
// where: 'ID = ?',
|
||||
// whereArgs: [templates['ID']],
|
||||
// );
|
||||
// if (existingCID.isNotEmpty) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
await excursionDBClient.insert(
|
||||
'excursionTemplates',
|
||||
|
||||
@@ -85,14 +85,14 @@ class PlaceDBHelper implements IDb{
|
||||
Future<void> addTemplate(Map<String, String> templates) async {
|
||||
var placeDBClient = await dB;
|
||||
|
||||
final existingCID = await placeDBClient.query(
|
||||
'placeTemplates',
|
||||
where: 'ID = ?',
|
||||
whereArgs: [templates['ID']],
|
||||
);
|
||||
if (existingCID.isNotEmpty) {
|
||||
return;
|
||||
}
|
||||
// final existingCID = await placeDBClient.query(
|
||||
// 'placeTemplates',
|
||||
// where: 'ID = ?',
|
||||
// whereArgs: [templates['ID']],
|
||||
// );
|
||||
// if (existingCID.isNotEmpty) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
await placeDBClient.insert(
|
||||
'placeTemplates',
|
||||
|
||||
Reference in New Issue
Block a user