jordan-dalby / ByteStash

A code snippet storage solution written in React & node.js
GNU General Public License v3.0
478 stars 13 forks source link

[BUG] Can't create snippet #102

Closed Traxof63 closed 4 days ago

Traxof63 commented 4 days ago

Describe the bug [ERROR] Error in POST /snippets: TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null

To Reproduce Create a new snippet

**Correction FILE /server/src/repositories/snippetRepository.js LINE 206 : const insertResult = this.insertSnippetStmt.run(title, description, userId, isPublic ? 1 : 0);

jordan-dalby commented 4 days ago

@Traxof63 Seems like you're using the unreleased version, did your database migrate correctly? Check the logs with DEBUG=true

jordan-dalby commented 4 days ago

@Traxof63 Just merged some changes as per your recommendation, should be fine now, thanks.