chore: Linter issues
This commit is contained in:
parent
7aafcead2b
commit
91c70f3e9d
11 changed files with 19 additions and 20 deletions
|
@ -69,9 +69,8 @@ const uploadToCloudflare = async (id, url) => {
|
|||
const form = new FormData()
|
||||
form.append('id', id)
|
||||
form.append('url', url)
|
||||
let result
|
||||
try {
|
||||
result = await axios.post(
|
||||
await axios.post(
|
||||
'https://api.cloudflare.com/client/v4/accounts/edd96e8b19d1be5946c5f7983365bda4/images/v1',
|
||||
form,
|
||||
{ headers }
|
||||
|
@ -80,7 +79,6 @@ const uploadToCloudflare = async (id, url) => {
|
|||
console.log(err.response.data)
|
||||
}
|
||||
|
||||
// Handle result here
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
@ -2,9 +2,6 @@ import path from 'path'
|
|||
import { fileURLToPath } from 'url'
|
||||
import { SESv2Client, SendEmailCommand } from '@aws-sdk/client-sesv2'
|
||||
|
||||
// Current working directory
|
||||
const cwd = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
export const send = async ({
|
||||
to = ['joost@joost.at'],
|
||||
bcc = [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue