Skip to content

Commit c959079

Browse files
authored
Merge pull request #3189 from SeedCompany/tweaks
2 parents 58f18cd + 77fb5ec commit c959079

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

.github/actions/edgedb-setup/action.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ runs:
66
- name: Setup EdgeDB
77
uses: edgedb/setup-edgedb@v1
88

9-
- run: edgedb configure set session_idle_transaction_timeout 5min
10-
shell: bash
11-
12-
- run: edgedb migrate --dev-mode
13-
shell: bash
14-
159
- name: Generate EdgeDB TS files
1610
shell: bash
1711
run: yarn edgedb:gen

src/core/edgedb/edgedb.module.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Module, OnModuleDestroy } from '@nestjs/common';
22
import { APP_INTERCEPTOR } from '@nestjs/core';
3-
import { ConnectOptions, createClient, Duration } from 'edgedb';
3+
import { ConnectOptions, createClient } from 'edgedb';
44
import { IdResolver } from '~/common/validators/short-id.validator';
55
import type { ConfigService } from '~/core';
66
import { splitDb } from '../database/split-db.provider';
@@ -19,15 +19,7 @@ import { TransactionContext } from './transaction.context';
1919
providers: [
2020
{
2121
provide: Options,
22-
useValue: Options.defaults().withConfig({
23-
// Bump from 1 min, as needed by test suite.
24-
// It's probably because we open & do more with in the transaction
25-
// than is expected by the library.
26-
// I'm not worried about this, and it's possible this can be removed
27-
// after migration if app overall is faster without Neo4j.
28-
// eslint-disable-next-line @typescript-eslint/naming-convention
29-
session_idle_transaction_timeout: Duration.from({ minutes: 5 }),
30-
}),
22+
useValue: Options.defaults(),
3123
},
3224
OptionsContext,
3325
{

0 commit comments

Comments
 (0)