2
0

Add OpenAI block

Also migrate credentials to tRPC

Closes #253
This commit is contained in:
Baptiste Arnaud
2023-03-09 08:46:36 +01:00
parent 97cfdfe79f
commit ff04edf139
86 changed files with 2583 additions and 1055 deletions

View File

@ -1,5 +1,4 @@
import { GraphNavigation, Plan, PrismaClient, WorkspaceRole } from 'db'
import { CredentialsType } from 'models'
import { encrypt } from '../api'
const prisma = new PrismaClient()
@ -134,7 +133,7 @@ const setupCredentials = () => {
data: [
{
name: 'pro-user@email.com',
type: CredentialsType.GOOGLE_SHEETS,
type: 'google sheets',
data: encryptedData,
workspaceId: proWorkspaceId,
iv,