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

Feature: ensure check in PINs unique #57

Closed
JaneIRL opened this issue Sep 12, 2023 · 1 comment
Closed

Feature: ensure check in PINs unique #57

JaneIRL opened this issue Sep 12, 2023 · 1 comment
Assignees
Labels
c-feature New feature or request

Comments

@JaneIRL
Copy link
Collaborator

JaneIRL commented Sep 12, 2023

Feature

No response

@JaneIRL JaneIRL added the c-feature New feature or request label Sep 12, 2023
@JaneIRL JaneIRL self-assigned this Sep 12, 2023
@JaneIRL
Copy link
Collaborator Author

JaneIRL commented Sep 24, 2023

Ensured via db constraint

db.getCollection('users').createIndex({"checkInPin":1}, {unique: true, partialFilterExpression: {checkInPin: {$type: 'number'}}})

@JaneIRL JaneIRL closed this as completed Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant