Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nowei committed Nov 21, 2024
1 parent a592e54 commit 1bcb125
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions api/src/services/uploads/uploads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type {
MutationResolvers,
UploadRelationResolvers,
} from 'types/graphql'
import { v4 as uuidv4 } from 'uuid'

import { RedwoodError } from '@redwoodjs/api'

Expand Down Expand Up @@ -254,7 +253,7 @@ export const getUploadsByExpenditureCategory = async (

if (
!uploadsByEC[upload.expenditureCategory.code].uploadsToAdd[
upload.agencyId
upload.agencyId
]
) {
// The agency was never added. This is the time to initialize it.
Expand Down Expand Up @@ -371,17 +370,11 @@ export const sendTreasuryReport: MutationResolvers['sendTreasuryReport'] =
where: { id: context.currentUser.agency.organizationId },
})
const emailLambdaPayload: EmailLambdaPayload =
await getEmailLambdaPayload(
organization,
context.currentUser,
)
await getEmailLambdaPayload(organization, context.currentUser)

const input = emailLambdaPayload;
const input = emailLambdaPayload

await sendSqsMessage(
process.env.TREASURY_EMAIL_SQS_URL,
input
)
await sendSqsMessage(process.env.TREASURY_EMAIL_SQS_URL, input)
return true
} catch (error) {
logger.error(error, 'Error sending Treasury Report')
Expand Down

0 comments on commit 1bcb125

Please sign in to comment.