1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-06-14 13:58:37 -04:00

Don't leak non-interface type from database module

This removes the last place I used *db.DbStore instead of store.Store
outside the 'db' package.
This commit is contained in:
2017-12-10 21:02:17 -05:00
parent d5bea1102d
commit 483adb5c56
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ package handlers
import (
"github.com/aclindsa/moneygo/internal/models"
"github.com/aclindsa/moneygo/internal/store"
"github.com/aclindsa/moneygo/internal/store/db"
"log"
"net/http"
"path"
@ -47,7 +46,7 @@ func (c *Context) LastLevel() bool {
type Handler func(*http.Request, *Context) ResponseWriterWriter
type APIHandler struct {
Store *db.DbStore
Store store.Store
}
func (ah *APIHandler) txWrapper(h Handler, r *http.Request, context *Context) (writer ResponseWriterWriter) {