deleteSlot method

  1. @override
Future<void> deleteSlot({
  1. required String token,
  2. required int slotId,
})
override

Deletes the slot with slotId.

Implementation

@override
Future<void> deleteSlot({required String token, required int slotId}) async {
  log('Deleting slot $slotId');

  await api.callFunction(
    function: 'local_lbplanner_slots_delete_slot',
    body: {
      'slotid': slotId,
    },
    token: token,
  );
}