push rasad front on new repo
This commit is contained in:
11
src/components/chat-system/services/closeTicket.js
Normal file
11
src/components/chat-system/services/closeTicket.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createAsyncThunk } from "@reduxjs/toolkit";
|
||||
import axios from "axios";
|
||||
|
||||
export const closeTicket = createAsyncThunk("CLOSE_TICKET", async (d) => {
|
||||
try {
|
||||
const { data, status } = await axios.put("ticket/0/", d);
|
||||
return { data, status };
|
||||
} catch (e) {
|
||||
return { error: e.response.data.result };
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user