updateGamificationEnabled method

Future<void> updateGamificationEnabled(
  1. String orgId,
  2. bool enabled
)

Implementation

Future<void> updateGamificationEnabled(String orgId, bool enabled) async {
  final org = await getOrganization(orgId);
  final mergedSettings = Map<String, dynamic>.from(org.settings)
    ..['gamification_enabled'] = enabled;
  await updateOrganization(orgId: orgId, settings: mergedSettings);
}