Created
June 17, 2022 23:40
-
-
Save mxro/51d8651d0046d6df84d7dbb50ac47f61 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // ensure table initialisation and migrations are only performed once per cold start | |
| const coldStartKey = getColdStartKey(packageConfig, deploymentName); | |
| if (!coldStart.has(coldStartKey)) { | |
| await assertTable(packageConfig, deploymentName, client); | |
| await performMigrations(packageConfig, deploymentName, migrations, client); | |
| coldStart.set(coldStartKey, true); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment