mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
imports
This commit is contained in:
parent
66e8cc2fff
commit
1cc9303b8b
3 changed files with 5 additions and 9 deletions
|
@ -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'
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue