Skip to content

cyco130/drizzle-d1-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drizzle D1 Bug

Reproduction

  • Install dependencies with npm install
  • Run node index.js and observe the output

There seems to be an off by one error somewhere.

Expected output

{
  "user": {
    "id": "user-id-1",
    "name": "Alice"
  },
  "session": {
    "id": "session-id-1",
    "userId": "user-id-1",
    "expiresAt": 123456
  }
}

Actual output

{
  "user": {
    "id": "session-id-1",
    "name": "Alice"
  },
  "session": {
    "id": "user-id-1",
    "userId": 123456
  }
}

session.expiresAt is set but it's undefined (which gets stripped by JSON.stringify).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published