Merge branch 'develop'
This commit is contained in:
commit
c402000f12
3 changed files with 9 additions and 2 deletions
|
|
@ -109,6 +109,8 @@ export const TicketDetail: FC<TicketDetailProps> = ({ id }) => {
|
|||
}
|
||||
model={{
|
||||
message: article.bodyWithUrls,
|
||||
type:
|
||||
article.contentType === "text/html" ? "html" : "text",
|
||||
sentTime: article.updated_at,
|
||||
sender: article.from,
|
||||
direction:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { gql } from 'graphql-request';
|
||||
import { gql } from "graphql-request";
|
||||
|
||||
export const getTicketArticlesQuery = gql`
|
||||
query getTicketArticles($ticketId: ID!) {
|
||||
|
|
@ -7,6 +7,7 @@ query getTicketArticles($ticketId: ID!) {
|
|||
node {
|
||||
id
|
||||
bodyWithUrls
|
||||
contentType
|
||||
internal
|
||||
type {
|
||||
name
|
||||
|
|
|
|||
|
|
@ -7,7 +7,11 @@ const rewriteURL = (
|
|||
destinationBaseURL: string,
|
||||
headers: any = {},
|
||||
) => {
|
||||
const destinationURL = request.url.replace(originBaseURL, destinationBaseURL);
|
||||
let path = request.url.replace(originBaseURL, "");
|
||||
if (path.startsWith("/")) {
|
||||
path = path.slice(1);
|
||||
}
|
||||
const destinationURL = `${destinationBaseURL}/${path}`;
|
||||
console.log(`Rewriting ${request.url} to ${destinationURL}`);
|
||||
const requestHeaders = new Headers(request.headers);
|
||||
requestHeaders.delete("x-forwarded-user");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue