A deployable markdown editor that connects with your self hosted files and lets you edit in a beautiful interface
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix CreateUser SQL query: remove updated_at from column list

The query had 6 columns but only 5 values were being passed, causing
'5 values for 6 columns' error. Since updated_at has a DEFAULT value
in the schema, it doesn't need to be in the INSERT column list.

+2 -2
+2 -2
backend/internal/database/queries.go
··· 9 9 // CreateUser creates a new user or updates if exists 10 10 func (db *DB) CreateUser(user *User) error { 11 11 query := ` 12 - INSERT INTO users (github_id, username, email, avatar_url, last_repo, updated_at) 13 - VALUES (?, ?, ?, ?, ?, CURRENT_TIMESTAMP) 12 + INSERT INTO users (github_id, username, email, avatar_url, last_repo) 13 + VALUES (?, ?, ?, ?, ?) 14 14 ON CONFLICT(github_id) DO UPDATE SET 15 15 username = excluded.username, 16 16 email = excluded.email,