-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: return ID from ProvisionsStorage
put
(#869)
We generate an ID when we create a new "provision" but we don't currently return it - add it to the return value of `put`. This is a bit muddled because the system is currently organized around "provisions" which are really an amalgamation of "subscriptions" and "consumers" - the plan since the D1 migration has been to break ProvisionsStorage into SubscriptionsStorage and ConsumersStorage - in that world this will be two steps - users will obtain a subscription from a provider and then attach it to a consumer, and it will be much clearer that this is actually the "subscription" ID. I'd like to tackle this refactoring soon, but for now this makes it easier to write tests and prepare for that future state.
- Loading branch information
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters