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

[#170133263] Create ValidationTokens storage table if not exists #31

Merged
merged 1 commit into from
Dec 5, 2019

Conversation

francescopersico
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Dec 5, 2019

Codecov Report

Merging #31 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #31   +/-   ##
=======================================
  Coverage   81.66%   81.66%           
=======================================
  Files          16       16           
  Lines         469      469           
  Branches       45       45           
=======================================
  Hits          383      383           
  Misses         86       86

@francescopersico francescopersico merged commit abbc5a6 into master Dec 5, 2019
@francescopersico francescopersico deleted the 170133263-create-validationtokens-table branch December 5, 2019 16:45
@@ -27,6 +27,10 @@ const hashCreator = (value: string) =>
.update(value)
.digest("hex");

// When the function starts, attempt to create the table if it does not exist
// Note that we cannot log anything just yet since we don't have a Context
tableService.createTableIfNotExists(VALIDATION_TOKEN_TABLE_NAME, () => 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an async operation, the table exists inside the () => 0 (the following code may fail)

This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants