mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
lint fixes
This commit is contained in:
parent
c57c259db8
commit
875c1f692b
@ -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 => {
|
||||
|
||||
@ -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
|
||||
})
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { default as corsLib } from 'cors'
|
||||
import corsLib from 'cors'
|
||||
|
||||
const corsOptions = {
|
||||
origin: '*',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user