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

Bug: No unique constraint for app pubkeys #213

Open
rolznz opened this issue Jan 12, 2024 · 0 comments
Open

Bug: No unique constraint for app pubkeys #213

rolznz opened this issue Jan 12, 2024 · 0 comments

Comments

@rolznz
Copy link
Contributor

rolznz commented Jan 12, 2024

apps are currently indexed by pubkey (e.g. https://nwc.getalby.com/apps/21bc9ba96fa06d8cedeca7bb2ca601c514543539c15fc2bf79df4331ea49a995) which is a problem if there are two apps for the same user that share the same pubkey.

A workaround is in 392a770 but it would be safer as a database constraint.

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

1 participant