1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00
This commit is contained in:
Tyler Myracle 2024-01-20 07:48:03 -06:00
parent 66e8cc2fff
commit 1cc9303b8b
3 changed files with 5 additions and 9 deletions

View file

@ -1,11 +1,6 @@
import type { AxiosInstance } from 'axios' import type { AxiosInstance } from 'axios'
import { import type { Prisma, AccountConnection, User } from '@prisma/client'
type Prisma, import { AccountConnectionType, AccountSyncStatus } from '@prisma/client'
type AccountConnection,
type User,
AccountConnectionType,
AccountSyncStatus,
} from '@prisma/client'
import { startServer, stopServer } from './utils/server' import { startServer, stopServer } from './utils/server'
import { getAxiosClient } from './utils/axios' import { getAxiosClient } from './utils/axios'
import prisma from '../lib/prisma' import prisma from '../lib/prisma'

View file

@ -35,7 +35,7 @@ export async function createTestInvestmentAccount(
join(__dirname, `../test-data/${portfolio}/holdings.csv`) join(__dirname, `../test-data/${portfolio}/holdings.csv`)
) )
const [, ...securities] = await prisma.$transaction([ const [_deleted, ...securities] = await prisma.$transaction([
prisma.security.deleteMany({ prisma.security.deleteMany({
where: { where: {
symbol: { symbol: {

View file

@ -2,7 +2,8 @@
// Keep these imports above the rest to avoid errors // Keep these imports above the rest to avoid errors
// ===================================================== // =====================================================
import { TellerGenerator } from 'tools/generators' import { TellerGenerator } from 'tools/generators'
import { AccountConnectionType, type User, type AccountConnection } from '@prisma/client' import type { User, AccountConnection } from '@prisma/client'
import { AccountConnectionType } from '@prisma/client'
import prisma from '../lib/prisma' import prisma from '../lib/prisma'
import { default as _teller } from '../lib/teller' import { default as _teller } from '../lib/teller'
import { resetUser } from './helpers/user.test-helper' import { resetUser } from './helpers/user.test-helper'