From 125ce9c955c53fd6a7c1bad8d1579220a19626c3 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 7 Feb 2022 15:59:52 +0100 Subject: [PATCH] fix get value db --- internal/gql/mutations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)