add System to create ticket
This commit is contained in:
parent
15fc3b1ae9
commit
7ea3524524
@ -16,7 +16,7 @@
|
|||||||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/react": "^11.10.5",
|
||||||
"@emotion/styled": "^11.10.5",
|
"@emotion/styled": "^11.10.5",
|
||||||
"@frontend/kitui": "^1.0.82",
|
"@frontend/kitui": "^1.0.86",
|
||||||
"@mui/icons-material": "^5.10.14",
|
"@mui/icons-material": "^5.10.14",
|
||||||
"@mui/material": "^5.10.14",
|
"@mui/material": "^5.10.14",
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
|
@ -82,7 +82,7 @@ export const createTicket = async (
|
|||||||
try {
|
try {
|
||||||
const createTicketResponse = await createTicketRequest({
|
const createTicketResponse = await createTicketRequest({
|
||||||
url: `${API_URL}/create`,
|
url: `${API_URL}/create`,
|
||||||
body: { Title: ticketNameField, Message: ticketBodyField },
|
body: { Title: ticketNameField, Message: ticketBodyField, System: false },
|
||||||
});
|
});
|
||||||
|
|
||||||
return [createTicketResponse];
|
return [createTicketResponse];
|
||||||
|
@ -273,7 +273,7 @@ export const sendUserData = async () => {
|
|||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
isPatchingUser && patchUser(userPayload).then(([user]) => user && setUser(user)),
|
isPatchingUser && patchUser(userPayload).then(([user]) => user && setUser(user)),
|
||||||
isPatchingUserAccount && patchUserAccount(userAccountPayload).then(setUserAccount),
|
isPatchingUserAccount && patchUserAccount(userAccountPayload, "1.0.1").then(setUserAccount),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user