diff --git a/.github/workflows/front-admin-build.yml b/.github/workflows/front-admin-build.yml index 1cfa49f9..60d24046 100644 --- a/.github/workflows/front-admin-build.yml +++ b/.github/workflows/front-admin-build.yml @@ -39,7 +39,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [18.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/front-admin-typecheck.yml b/.github/workflows/front-admin-typecheck.yml index c019c575..e4c05eaa 100644 --- a/.github/workflows/front-admin-typecheck.yml +++ b/.github/workflows/front-admin-typecheck.yml @@ -39,7 +39,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [18.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/front-server-build.yml b/.github/workflows/front-server-build.yml index 974efb2b..253cdaa3 100644 --- a/.github/workflows/front-server-build.yml +++ b/.github/workflows/front-server-build.yml @@ -38,7 +38,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [18.x] steps: - name: Skip Duplicate Actions diff --git a/.github/workflows/front-server-unit-tests.yml b/.github/workflows/front-server-unit-tests.yml index e6642deb..3486ff3a 100644 --- a/.github/workflows/front-server-unit-tests.yml +++ b/.github/workflows/front-server-unit-tests.yml @@ -39,7 +39,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [18.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/front-studio-build.yml b/.github/workflows/front-studio-build.yml index c1e0f88d..37489d47 100644 --- a/.github/workflows/front-studio-build.yml +++ b/.github/workflows/front-studio-build.yml @@ -39,7 +39,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [18.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/front-studio-typecheck.yml b/.github/workflows/front-studio-typecheck.yml index 373dbdf2..dd6f37b4 100644 --- a/.github/workflows/front-studio-typecheck.yml +++ b/.github/workflows/front-studio-typecheck.yml @@ -39,7 +39,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [18.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b0113da4..f87656ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [18.x] steps: diff --git a/front/packages/client/src/index.ts b/front/packages/client/src/index.ts index ed86cf9f..9aa9e1ef 100644 --- a/front/packages/client/src/index.ts +++ b/front/packages/client/src/index.ts @@ -17,8 +17,8 @@ const qss = (v: any) => { return qs.stringify(v, { addQueryPrefix: true, skipNulls: true }) } -const http_agent = new http.Agent({ keepAlive: true }); -const https_agent = new https.Agent({ keepAlive: true }); +const http_agent = new http.Agent({ keepAlive: false }); +const https_agent = new https.Agent({ keepAlive: false }); export class Client { @@ -624,7 +624,7 @@ export class StationFiles { return await this.client.delete(ip, ua, token, `/stations/${station_id}/files/${file_id}`); } - async post(ip: string | null, ua: string | null, token: string, station_id: string, content_type: string, content_length: number, query: import("./defs/api/stations/[station]/files/POST/Query.js").Query, data: Readable): Promise { + async post(ip: string | null, ua: string | null, token: string, station_id: string, content_type: string, content_length: number, query: import("./defs/api/stations/[station]/files/POST/Query.js").Query, data: Readable | Buffer): Promise { const headers = new Headers();