diff --git a/internal/gql/mutations.go b/internal/gql/mutations.go index a68186c..ce33f8c 100644 --- a/internal/gql/mutations.go +++ b/internal/gql/mutations.go @@ -222,7 +222,7 @@ func deleteDirectory(ctx context.Context, id types.ID) error { //login Checks for valid username password combination. Returns singed jwt string func login(ctx context.Context, username, password string) (types.LoginResult, error) { - dbStore := ctx.Value("dbStore").(*db.DB) + dbStore := ctx.Value("dbStore").(db.DB) succes, err := dbStore.CheckLogin(ctx, username, password)