Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Badge uniqueness - can't issue a badge to the same earner multiple times #131

Open
abbycabs opened this issue Apr 22, 2015 · 0 comments
Open

Comments

@abbycabs
Copy link

From the docs, it looks like you should be able to specify whether a badge can be earned more than once by an earner:
https://github.com/mozilla/badgekit-api/blob/master/docs/badges.md

unique  boolean - True if the same earner can only earn the badge once.

But in the actual database, there's a unique key preventing multiple badgeInstance entries with the same earner email and badge id.
https://github.com/mozilla/badgekit-api/blob/master/app/migrations/20140603150606-initial.js#L117

@simonwex simonwex added this to the OBI 1.1 & Maintenance Work milestone Apr 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants