removeDeadline method
override
Removes the deadline with the given id
from the plan of the user associated with the given token
.
Implementation
@override
Future<void> removeDeadline(String token, int id) async {
log('Removing deadline $id');
try {
await _apiService.callFunction(
function: 'local_lbplanner_plan_delete_deadline',
token: token,
body: {
'moduleid': id,
},
);
log('Deadline $id removed');
} catch (e, s) {
log('Failed to remove deadline $id', e, s);
rethrow;
}
}