Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: fix golang checks
Johnny310590b278d2
diff --git a/store/db/mysql/user_setting.go b/store/db/mysql/user_setting.goindex 16545f0fc..effc926ef 100644--- a/store/db/mysql/user_setting.go+++ b/store/db/mysql/user_setting.go@@ -68,10 +68,10 @@ func (d *DB) GetUserSessionByID(ctx context.Context, sessionID string) (*store.UWHERE ` + "`key`" + ` = 'SESSIONS'AND JSON_SEARCH(value, 'one', ?, NULL, '$.sessions[*].sessionId') IS NOT NULL`-+var userID int32var sessionsJSON string-+err := d.db.QueryRowContext(ctx, query, sessionID).Scan(&userID, &sessionsJSON)if err != nil {return nil, errdiff --git a/store/db/postgres/user_setting.go b/store/db/postgres/user_setting.goindex 478bfe00d..fd3493ecc 100644--- a/store/db/postgres/user_setting.go+++ b/store/db/postgres/user_setting.go@@ -85,10 +85,10 @@ func (d *DB) GetUserSessionByID(ctx context.Context, sessionID string) (*store.UWHERE session->>'sessionId' = $1)`-+var userID int32var sessionsJSON string-+err := d.db.QueryRowContext(ctx, query, sessionID).Scan(&userID, &sessionsJSON)if err != nil {return nil, errdiff --git a/store/db/sqlite/user_setting.go b/store/db/sqlite/user_setting.goindex ae2d9805c..775273c7b 100644--- a/store/db/sqlite/user_setting.go+++ b/store/db/sqlite/user_setting.go@@ -84,10 +84,10 @@ func (d *DB) GetUserSessionByID(ctx context.Context, sessionID string) (*store.UWHERE json_extract(session.value, '$.sessionId') = ?)`-+var userID int32var sessionsJSON string-+err := d.db.QueryRowContext(ctx, query, sessionID).Scan(&userID, &sessionsJSON)if err != nil {return nil, err