fa backend fix

This commit is contained in:
Sendou 2019-12-15 16:30:21 +02:00
parent aa387b5129
commit 1752fb64c7
2 changed files with 10 additions and 9 deletions

View File

@ -17,7 +17,9 @@ const TextRows = ({ freeAgent }) => {
</Table.Row>
<Table.Row>
<Table.Cell></Table.Cell>
<Table.Cell colSpan={4}>{activity}</Table.Cell>
<Table.Cell colSpan={4} style={{ whiteSpace: "pre-wrap" }}>
{activity}
</Table.Cell>
</Table.Row>
</>
)}
@ -31,7 +33,9 @@ const TextRows = ({ freeAgent }) => {
</Table.Row>
<Table.Row style={{ border: "0" }}>
<Table.Cell></Table.Cell>
<Table.Cell colSpan={4}>{past_experience}</Table.Cell>
<Table.Cell colSpan={4} style={{ whiteSpace: "pre-wrap" }}>
{past_experience}
</Table.Cell>
</Table.Row>
</>
)}
@ -45,7 +49,9 @@ const TextRows = ({ freeAgent }) => {
</Table.Row>
<Table.Row>
<Table.Cell></Table.Cell>
<Table.Cell colSpan={4}>{looking_for}</Table.Cell>
<Table.Cell colSpan={4} style={{ whiteSpace: "pre-wrap" }}>
{looking_for}
</Table.Cell>
</Table.Row>
</>
)}

View File

@ -151,12 +151,7 @@ const resolvers = {
})
args.user = ctx.user
await sendFAPostToDiscord(args).catch(error => {
throw new UserInputError(
"problem with Discord webhook. This means the post was added to the database but didn't get posted on Discord because: " +
error.error
)
})
sendFAPostToDiscord(args)
return true
},