fix: remove bolt db stores
This commit is contained in:
parent
f637781d4d
commit
02740bae37
16 changed files with 2 additions and 3142 deletions
|
@ -20,7 +20,6 @@ import (
|
|||
|
||||
"github.com/ihexxa/fsearch"
|
||||
"github.com/ihexxa/quickshare/src/db"
|
||||
"github.com/ihexxa/quickshare/src/db/userstore"
|
||||
"github.com/ihexxa/quickshare/src/depidx"
|
||||
q "github.com/ihexxa/quickshare/src/handlers"
|
||||
"github.com/ihexxa/quickshare/src/worker/localworker"
|
||||
|
@ -679,7 +678,7 @@ func (h *FileHandlers) Download(c *gin.Context) {
|
|||
dirPath := filepath.Dir(filePath)
|
||||
|
||||
var err error
|
||||
userId := userstore.VisitorID
|
||||
userId := db.VisitorID
|
||||
if role != db.VisitorRole {
|
||||
userId, err = q.GetUserId(c)
|
||||
if err != nil {
|
||||
|
|
|
@ -15,7 +15,6 @@ import (
|
|||
"golang.org/x/crypto/bcrypt"
|
||||
|
||||
"github.com/ihexxa/quickshare/src/db"
|
||||
"github.com/ihexxa/quickshare/src/db/userstore"
|
||||
"github.com/ihexxa/quickshare/src/depidx"
|
||||
q "github.com/ihexxa/quickshare/src/handlers"
|
||||
"github.com/ihexxa/quickshare/src/worker/localworker"
|
||||
|
@ -248,7 +247,7 @@ func (h *MultiUsersSvc) Login(c *gin.Context) {
|
|||
|
||||
user, err := h.deps.Users().GetUserByName(c, req.User)
|
||||
if err != nil {
|
||||
if errors.Is(err, userstore.ErrUserNotFound) {
|
||||
if errors.Is(err, db.ErrUserNotFound) {
|
||||
c.JSON(q.ErrResp(c, 403, err))
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue