addSupervisor method

  1. @override
Future<void> addSupervisor({
  1. required String token,
  2. required int slotId,
  3. required int supervisorId,
})
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,
  );
}