Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem unmarshal cards #8

Open
josofm opened this issue Mar 6, 2021 · 1 comment
Open

Problem unmarshal cards #8

josofm opened this issue Mar 6, 2021 · 1 comment

Comments

@josofm
Copy link

josofm commented Mar 6, 2021

When I try query some cards, by id or by name I receive this error:
json: cannot unmarshal string into Go struct field Card.cards.multiverseid of type mtg.MultiverseId

	q := mtg.NewQuery()
	cards, err := q.Where(mtg.CardName, name).All()
	if err != nil {
		return cards, err
	}
	return cards, nil
}

Any idea?

@Ion-manden
Copy link

Should be fixed by #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants