clearDeadlines method

  1. @override
Future<void> clearDeadlines(
  1. String token
)
override

Clears all deadlines in the plan of the user associated with the given token.

Implementation

@override
Future<void> clearDeadlines(String token) async {
  log('Clearing deadlines');

  try {
    await _apiService.callFunction(
      function: 'local_lbplanner_plan_clear_plan',
      token: token,
      body: {},
    );

    log('Deadlines cleared');
  } catch (e, s) {
    log('Failed to clear deadlines', e, s);
    rethrow;
  }
}