Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Nov 29, 2023
1 parent 131743e commit 0b82716
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.2.0p
v2.2.1p
2 changes: 1 addition & 1 deletion build/assets/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"archiver_settings": {
"enable": false,
"engine": "posgresql",
"engine": "postgresql",
"host": "127.0.0.1",
"port": 5432,
"username": "postgres",
Expand Down
9 changes: 4 additions & 5 deletions driver/dao/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package dao

import (
"fmt"
"net/url"

"gorm.io/driver/mysql"
"gorm.io/driver/postgres"
Expand All @@ -20,8 +19,8 @@ func (p *PostgreSQL) isCompatible(engine string) bool {

func (p *PostgreSQL) openDBConn(host string, port int, username, password, database string) (*gorm.DB, error) {
dsn := fmt.Sprintf(
"host=%s port=%d user=%s password=%s dbname=%s sslmode=disable connect_timeout=%d TimeZone=%s",
host, port, username, password, database, int(DB_TIMEOUT.Seconds()), DB_TIMEZONE,
"host=%s port=%d user=%s password=%s dbname=%s sslmode=disable connect_timeout=%d TimeZone=Etc/GMT",
host, port, username, password, database, int(DB_TIMEOUT.Seconds()),
)
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{
Logger: logger.Default.LogMode(logger.Silent),
Expand All @@ -46,9 +45,9 @@ func (m *MariaDB) isCompatible(engine string) bool {

func (m *MariaDB) openDBConn(host string, port int, username, password, database string) (*gorm.DB, error) {
dsn := fmt.Sprintf(
"%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&timeout=%ds&loc=%s",
"%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&timeout=%ds&loc=UTC",
username, password, host, port, database,
int(DB_TIMEOUT.Seconds()), url.QueryEscape(DB_TIMEZONE),
int(DB_TIMEOUT.Seconds()),
)
return gorm.Open(mysql.Open(dsn), &gorm.Config{
Logger: logger.Default.LogMode(logger.Silent),
Expand Down
1 change: 0 additions & 1 deletion driver/dao/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
)

const (
DB_TIMEZONE = "Etc/GMT"
DB_TIMEOUT = 5 * time.Second
DB_TABLENAME = "geophone_records"
)
Expand Down
4 changes: 2 additions & 2 deletions frontend/dist/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.3d547ccc.css",
"main.js": "/static/js/main.73398af9.js",
"main.js": "/static/js/main.d5698ba2.js",
"static/css/278.525e2941.chunk.css": "/static/css/278.525e2941.chunk.css",
"static/js/278.f2bbf51e.chunk.js": "/static/js/278.f2bbf51e.chunk.js",
"static/js/967.8f28312d.chunk.js": "/static/js/967.8f28312d.chunk.js",
Expand Down Expand Up @@ -47,6 +47,6 @@
},
"entrypoints": [
"static/css/main.3d547ccc.css",
"static/js/main.73398af9.js"
"static/js/main.d5698ba2.js"
]
}
2 changes: 1 addition & 1 deletion frontend/dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/><link rel="icon" href="/favicon.ico"/><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.73398af9.js"></script><link href="/static/css/main.3d547ccc.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/><link rel="icon" href="/favicon.ico"/><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.d5698ba2.js"></script><link href="/static/css/main.3d547ccc.css" rel="stylesheet"></head><body><div id="root"></div></body></html>

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions frontend/src/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_VERSION=v2.2.0p
REACT_APP_RELEASE=d7331515-20231129204232
REACT_APP_VERSION=v2.2.1p
REACT_APP_RELEASE=131743e1-20231129221715

0 comments on commit 0b82716

Please sign in to comment.