This repository was archived by the owner on May 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +1316
-1374
lines changed Expand file tree Collapse file tree 3 files changed +1316
-1374
lines changed Original file line number Diff line number Diff line change 10
10
if : " !contains(github.event.head_commit.message, 'skip ci')"
11
11
env : { NODE_OPTIONS: '--max-old-space-size=3200' }
12
12
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' } }
15
15
16
16
# Cache for npm/npx in ~/.npm
17
17
- uses : actions/cache@v3
Original file line number Diff line number Diff line change 1
1
import { Readable , Transform } from 'node:stream'
2
2
import { promisify } from 'node:util'
3
- import { DBPatch } from '@naturalcycles/db-lib'
4
3
import {
4
+ DBPatch ,
5
5
BaseCommonDB ,
6
6
CommonDB ,
7
7
CommonDBCreateOptions ,
@@ -24,8 +24,7 @@ import {
24
24
JsonSchemaRootObject ,
25
25
ObjectWithId ,
26
26
} 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'
29
28
import {
30
29
Connection ,
31
30
OkPacket ,
@@ -322,7 +321,7 @@ export class MysqlDB extends BaseCommonDB implements CommonDB {
322
321
const { insertId } = await this . runSQL < OkPacket > ( { sql } )
323
322
324
323
// 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
326
325
}
327
326
}
328
327
You can’t perform that action at this time.
0 commit comments