mirror of
https://github.com/writefreely/writefreely
synced 2025-02-17 16:28:23 +00:00
Fix GetCollections() call
This commit is contained in:
parent
be76f865a4
commit
e5671cd1e6
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ func viewImport(app *App, u *User, w http.ResponseWriter, r *http.Request) error
|
||||||
// Fetch extra user data
|
// Fetch extra user data
|
||||||
p := NewUserPage(app, r, u, "Import", nil)
|
p := NewUserPage(app, r, u, "Import", nil)
|
||||||
|
|
||||||
c, err := app.db.GetCollections(u)
|
c, err := app.db.GetCollections(u, app.Config().App.Host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return impart.HTTPError{http.StatusInternalServerError, fmt.Sprintf("unable to fetch collections: %v", err)}
|
return impart.HTTPError{http.StatusInternalServerError, fmt.Sprintf("unable to fetch collections: %v", err)}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue