Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.
This repository was 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

Description

@abbycabs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions