chore: #123 unify metrics, logs, variable names and structure
This commit is contained in:
@@ -16,7 +16,7 @@ func RunMigrations(db *sql.DB) {
|
||||
}
|
||||
|
||||
m, err := migrate.NewWithDatabaseInstance(
|
||||
"file://./migrations/",
|
||||
"file://./migration/",
|
||||
"",
|
||||
driver)
|
||||
if err != nil {
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func WriteJSON(w http.ResponseWriter, data interface{}) error {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
return json.NewEncoder(w).Encode(data)
|
||||
}
|
||||
Reference in New Issue
Block a user