diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-04-14 14:32:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 13:32:48 +0100 |
commit | 3ddbffd59ece5f74d951d6209882d9d954db4bc3 (patch) | |
tree | 97fa206f4780dae5854ef2d7e44ede806dc2b188 /mediaapi/mediaapi.go | |
parent | 3a5e9a0f284eef0fcb94a22035f9ffd2eb65eedf (diff) |
Refactor media storage layer, add tests (#2352)
* Refactor mediaapi storage layer
* Verify filetype before trying to create thumbnails
* Add media api storage tests
* Fix returned values
Diffstat (limited to 'mediaapi/mediaapi.go')
-rw-r--r-- | mediaapi/mediaapi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediaapi/mediaapi.go b/mediaapi/mediaapi.go index c010981c..e5daf480 100644 --- a/mediaapi/mediaapi.go +++ b/mediaapi/mediaapi.go @@ -32,7 +32,7 @@ func AddPublicRoutes( userAPI userapi.UserInternalAPI, client *gomatrixserverlib.Client, ) { - mediaDB, err := storage.Open(&cfg.Database) + mediaDB, err := storage.NewMediaAPIDatasource(&cfg.Database) if err != nil { logrus.WithError(err).Panicf("failed to connect to media db") } |