Skip to content

Commit

Permalink
🐛 fix(path): use filepath instead of path
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Jul 6, 2022
1 parent 56d7bb8 commit a2cba5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"net/http"
"os"
"os/signal"
"path"
"path/filepath"
"syscall"
"time"
)
Expand All @@ -44,7 +44,7 @@ func Run(serverConf string, accountConf string) {
zap.S().Fatalw("failed to mkdir", "error", err)
}

sqlite, err := db.Init(path.Join(config.Server.Path, "data.db"))
sqlite, err := db.Init(filepath.Join(config.Server.Path, "data.db"))
if err != nil {
zap.S().Fatalw("failed to init database", "error", err)
}
Expand Down

0 comments on commit a2cba5d

Please sign in to comment.