Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"ex": "tsx --tsconfig tsconfig.tsx.json --require dotenv/config --require tsconfig-paths/register"
},
"dependencies": {
"@assembly-js/node-sdk": "^3.19.1",
"@sentry/nextjs": "^10.29.0",
"@types/deep-equal": "^1.0.4",
"@types/html-to-text": "^9.0.4",
"bottleneck": "^2.19.5",
"copilot-design-system": "^2.2.3",
"copilot-node-sdk": "^3.16.0",
"dayjs": "^1.11.19",
"deep-equal": "^2.2.3",
"dotenv": "^17.2.1",
Expand Down
47 changes: 21 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/api/sync-logs/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getSyncLogsCsv } from '@sync-logs/api/syncLogs.controller'
import { withErrorHandler } from '@/utils/withErrorHandler'

export const maxDuration = 800
export const maxDuration = 300

export const GET = withErrorHandler(getSyncLogsCsv)
6 changes: 3 additions & 3 deletions src/lib/copilot/CopilotAPI.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'server-only'

import type { AssemblyAPI as SDK } from '@assembly-js/node-sdk'
import { assemblyApi } from '@assembly-js/node-sdk'
import { type InvoiceCreatedEvent, InvoiceCreatedEventSchema } from '@invoice-sync/types'
import type { CopilotAPI as SDK } from 'copilot-node-sdk'
import { copilotApi } from 'copilot-node-sdk'
import z from 'zod'
import env from '@/config/server.env'
import { MAX_FETCH_COPILOT_RESOURCES } from '@/constants/limits'
Expand Down Expand Up @@ -43,7 +43,7 @@ export class CopilotAPI {
private readonly token: string,
readonly customApiKey?: string,
) {
this.copilot = copilotApi({
this.copilot = assemblyApi({
apiKey: customApiKey ?? env.COPILOT_API_KEY,
token,
})
Expand Down