Felhő projekt létrehozásakor keletkett hiba javítása
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
@@ -1581,4 +1581,14 @@ class AppDatabase {
|
||||
'Projekt helyi törlése: "$name" (id=$localProjectId) — a szerveren '
|
||||
'már nem szerepel a tagsági listában (törölve vagy kikerültünk).');
|
||||
}
|
||||
|
||||
/// Egy projekt aktuális szinkron-állapota — nyers oszlop-lekérdezés,
|
||||
/// hogy a Project modellt ne kelljen ezért bővíteni.
|
||||
Future<String?> getProjectSyncStatus(int id) async {
|
||||
final db = await database;
|
||||
final rows = await db.query('projects',
|
||||
columns: ['sync_status'], where: 'id = ?', whereArgs: [id], limit: 1);
|
||||
if (rows.isEmpty) return null;
|
||||
return rows.first['sync_status'] as String?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user