Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit f77a2e5

Browse files
fix: deps
1 parent c83aae8 commit f77a2e5

File tree

3 files changed

+1316
-1374
lines changed

3 files changed

+1316
-1374
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
if: "!contains(github.event.head_commit.message, 'skip ci')"
1111
env: { NODE_OPTIONS: '--max-old-space-size=3200' }
1212
steps:
13-
- { uses: actions/checkout@v3, with: { persist-credentials: true } }
14-
- { uses: actions/setup-node@v3, with: { node-version: 18, cache: 'yarn' } }
13+
- { uses: actions/checkout@v4, with: { persist-credentials: true } }
14+
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'yarn' } }
1515

1616
# Cache for npm/npx in ~/.npm
1717
- uses: actions/cache@v3

src/mysql.db.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Readable, Transform } from 'node:stream'
22
import { promisify } from 'node:util'
3-
import { DBPatch } from '@naturalcycles/db-lib'
43
import {
4+
DBPatch,
55
BaseCommonDB,
66
CommonDB,
77
CommonDBCreateOptions,
@@ -24,8 +24,7 @@ import {
2424
JsonSchemaRootObject,
2525
ObjectWithId,
2626
} from '@naturalcycles/js-lib'
27-
import { ReadableTyped } from '@naturalcycles/nodejs-lib'
28-
import { white } from '@naturalcycles/nodejs-lib'
27+
import { ReadableTyped, white } from '@naturalcycles/nodejs-lib'
2928
import {
3029
Connection,
3130
OkPacket,
@@ -322,7 +321,7 @@ export class MysqlDB extends BaseCommonDB implements CommonDB {
322321
const { insertId } = await this.runSQL<OkPacket>({ sql })
323322

324323
// Mutate the input row with insertIt
325-
rowsInput[i]!.id = insertId
324+
rowsInput[i]!.id = insertId as any // this is because we no longer support number ids in CommonDB
326325
}
327326
}
328327

0 commit comments

Comments
 (0)