aboutsummaryrefslogtreecommitdiff
path: root/mediaapi
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-05-22 12:28:48 +0100
committerGitHub <noreply@github.com>2020-05-22 12:28:48 +0100
commit3daa2327edc90e1ff70bcbc578b793ae5ba5b69f (patch)
tree93ddec9cacff504b8bc0e6e6aaf81167a6873d44 /mediaapi
parentfbdcfdd25674eb73c4804be42031397e415797a9 (diff)
dendritejs tweaks for persisting sqlite DBs (#1058)
* Use uri.path so we don't have file: in the filename * New go-sqlite-js version
Diffstat (limited to 'mediaapi')
-rw-r--r--mediaapi/storage/storage_wasm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediaapi/storage/storage_wasm.go b/mediaapi/storage/storage_wasm.go
index 78de2cb8..aa188997 100644
--- a/mediaapi/storage/storage_wasm.go
+++ b/mediaapi/storage/storage_wasm.go
@@ -35,7 +35,7 @@ func Open(
case "postgres":
return nil, fmt.Errorf("Cannot use postgres implementation")
case "file":
- return sqlite3.Open(dataSourceName)
+ return sqlite3.Open(uri.Path)
default:
return nil, fmt.Errorf("Cannot use postgres implementation")
}