updateLastSync method
Implementation
Future<AppConfigData?> updateLastSync(DateTime lastSync) async {
return (await (update(appConfig)..where((item) => item.id.equals(1)))
.writeReturning(AppConfigCompanion(lastSync: Value(lastSync))))
.firstOrNull;
}