Skip to content

Commit

Permalink
remove judge
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Jul 8, 2024
1 parent af21cdc commit 555983f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serverless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function postQuery<T>(config: Config, body, session = '', isolation

if (response.ok) {
const resp = await response.json()
if ( resp.sLastInsertID && resp.sLastInsertID != "0"){
if ( resp.sLastInsertID ){
resp.lastInsertId = BigInt(resp.sLastInsertID)
}
const session = response.headers.get('TiDB-Session')
Expand Down

0 comments on commit 555983f

Please sign in to comment.