fixed warning, because field ID is no longer existent

This commit is contained in:
Nico
2025-05-10 22:31:20 +02:00
parent f3c6c172d1
commit fe868c7839
2 changed files with 16 additions and 16 deletions

View File

@@ -86,14 +86,14 @@ class ExcursionDBHelper implements IDb{
Future<void> addTemplate(Map<String, String> templates) async { Future<void> addTemplate(Map<String, String> templates) async {
var excursionDBClient = await dB; var excursionDBClient = await dB;
final existingCID = await excursionDBClient.query( // final existingCID = await excursionDBClient.query(
'excursionTemplates', // 'excursionTemplates',
where: 'ID = ?', // where: 'ID = ?',
whereArgs: [templates['ID']], // whereArgs: [templates['ID']],
); // );
if (existingCID.isNotEmpty) { // if (existingCID.isNotEmpty) {
return; // return;
} // }
await excursionDBClient.insert( await excursionDBClient.insert(
'excursionTemplates', 'excursionTemplates',

View File

@@ -85,14 +85,14 @@ class PlaceDBHelper implements IDb{
Future<void> addTemplate(Map<String, String> templates) async { Future<void> addTemplate(Map<String, String> templates) async {
var placeDBClient = await dB; var placeDBClient = await dB;
final existingCID = await placeDBClient.query( // final existingCID = await placeDBClient.query(
'placeTemplates', // 'placeTemplates',
where: 'ID = ?', // where: 'ID = ?',
whereArgs: [templates['ID']], // whereArgs: [templates['ID']],
); // );
if (existingCID.isNotEmpty) { // if (existingCID.isNotEmpty) {
return; // return;
} // }
await placeDBClient.insert( await placeDBClient.insert(
'placeTemplates', 'placeTemplates',