setted goal plans can be saved now

This commit is contained in:
Kima
2023-08-28 02:33:39 +02:00
parent 3e470981a8
commit 0ac0586fba
7 changed files with 467 additions and 364 deletions

View File

@@ -140,4 +140,11 @@ class UserDatabaseStore {
await db.update("user_data", {"renamed_teachers": renamedTeachersJson},
where: "id = ?", whereArgs: [userId]);
}
Future<void> storeSubjectGoalPlans(Map<String, String> plans,
{required String userId}) async {
String goalPlansJson = jsonEncode(plans);
await db.update("user_data", {"goal_plans": goalPlansJson},
where: "id = ?", whereArgs: [userId]);
}
}