lint fixes

This commit is contained in:
Ulf Gebhardt 2023-03-29 17:19:55 +02:00
parent c57c259db8
commit 875c1f692b
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 3 additions and 3 deletions

View File

@ -27,6 +27,7 @@ import { Context, getUser, getClientTimezoneOffset } from '@/server/context'
import { calculateBalance } from '@/util/validate'
import { RIGHTS } from '@/auth/RIGHTS'
import { calculateDecay } from '@/util/decay'
import { QueryLinkResult } from '@union/QueryLinkResult'
import { TRANSACTIONS_LOCK } from '@/util/TRANSACTIONS_LOCK'
import { LogError } from '@/server/LogError'
import {
@ -39,7 +40,6 @@ import {
import { executeTransaction } from './TransactionResolver'
import { getUserCreation, validateContribution } from './util/creations'
import { getLastTransaction } from './util/getLastTransaction'
import QueryLinkResult from '../union/QueryLinkResult'
// TODO: do not export, test it inside the resolver
export const transactionLinkCode = (date: Date): string => {

View File

@ -3,7 +3,7 @@ import { createUnionType } from 'type-graphql'
import { ContributionLink } from '@model/ContributionLink'
import { TransactionLink } from '@model/TransactionLink'
export default createUnionType({
export const QueryLinkResult = createUnionType({
name: 'QueryLinkResult', // the name of the GraphQL union
types: () => [TransactionLink, ContributionLink] as const, // function that returns tuple of object types classes
})

View File

@ -1,4 +1,4 @@
import { default as corsLib } from 'cors'
import corsLib from 'cors'
const corsOptions = {
origin: '*',