diff options
author | xengineering <me@xengineering.eu> | 2024-05-01 13:19:05 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-05-01 13:19:05 +0200 |
commit | 4cc0677b79edeed05ead23def152ac45f35f556d (patch) | |
tree | f7be89d40f09cb2427f3f7607a03d46ed1bacc7d /model/database.go | |
parent | f9117c3740a134ce544f5a70bcf5b5da06d976da (diff) | |
download | ceres-4cc0677b79edeed05ead23def152ac45f35f556d.tar ceres-4cc0677b79edeed05ead23def152ac45f35f556d.tar.zst ceres-4cc0677b79edeed05ead23def152ac45f35f556d.zip |
Use default storage path instead of temp dir
Diffstat (limited to 'model/database.go')
-rw-r--r-- | model/database.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model/database.go b/model/database.go index 3d8a0c4..36190ff 100644 --- a/model/database.go +++ b/model/database.go @@ -23,7 +23,7 @@ func GetSql(code string) (string, error) { return string(query), nil } -func InitDatabase() { +func InitDatabase(storage string) { var err error fn := filepath.Join(storage, "ceres.sqlite3") |