addSupervisor method
override
Adds supervisorId
to the supervisors of the slot with slotId
.
Implementation
@override
Future<void> addSupervisor({required String token, required int slotId, required int supervisorId}) async {
log('Adding supervisor $supervisorId to slot $slotId');
await api.callFunction(
function: 'local_lbplanner_slots_add_slot_supervisor',
body: {
'slotid': slotId,
'userid': supervisorId,
},
token: token,
);
}