mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
feat: finished queues crud services
This commit is contained in:
9
backend/src/services/QueueService/DeleteQueueService.ts
Normal file
9
backend/src/services/QueueService/DeleteQueueService.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import ShowQueueService from "./ShowQueueService";
|
||||
|
||||
const DeleteQueueService = async (queueId: number | string): Promise<void> => {
|
||||
const queue = await ShowQueueService(queueId);
|
||||
|
||||
await queue.destroy();
|
||||
};
|
||||
|
||||
export default DeleteQueueService;
|
||||
Reference in New Issue
Block a user