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 linter
Johnny38b6c3afb97c
diff --git a/store/db/mysql/mysql.go b/store/db/mysql/mysql.goindex 989d33e89..2862d8722 100644--- a/store/db/mysql/mysql.go+++ b/store/db/mysql/mysql.go@@ -50,7 +50,7 @@ func (d *DB) Close() error {func (d *DB) IsInitialized(ctx context.Context) (bool, error) {var exists bool- err := d.db.QueryRow("SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE TABLE_NAME = 'memo' AND TABLE_TYPE = 'BASE TABLE')").Scan(&exists)+ err := d.db.QueryRowContext(ctx, "SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE TABLE_NAME = 'memo' AND TABLE_TYPE = 'BASE TABLE')").Scan(&exists)if err != nil {return false, errors.Wrap(err, "failed to check if database is initialized")}diff --git a/store/db/postgres/postgres.go b/store/db/postgres/postgres.goindex 4c8b907b2..4cf017eb7 100644--- a/store/db/postgres/postgres.go+++ b/store/db/postgres/postgres.go@@ -49,7 +49,7 @@ func (d *DB) Close() error {func (d *DB) IsInitialized(ctx context.Context) (bool, error) {var exists bool- err := d.db.QueryRow("SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'memo' AND table_type = 'BASE TABLE')").Scan(&exists)+ err := d.db.QueryRowContext(ctx, "SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'memo' AND table_type = 'BASE TABLE')").Scan(&exists)if err != nil {return false, errors.Wrap(err, "failed to check if database is initialized")}