eventstore
Advanced tools
Comparing version 1.13.1 to 1.13.2
@@ -814,3 +814,3 @@ var util = require('util'), | ||
function isTableAlreadyExistsError (err) { | ||
return err.code === "ResourceInUseException" && err.message === "Cannot create preexisting table" | ||
return err.code === "ResourceInUseException" && err.message === "Cannot create preexisting table"; | ||
} | ||
@@ -822,3 +822,3 @@ | ||
if (err) { | ||
if (err.code === "ResourceNotFoundException" && !isTableAlreadyExistsError(err)) { | ||
if (err.code === "ResourceNotFoundException") { | ||
debug("Table " + p.TableName + " doesn't exist yet: " + JSON.stringify(p, null, 2)); | ||
@@ -841,3 +841,3 @@ cbExists(null, { exists: false, definition: p }); | ||
client.createTable(r.definition, function (err, data) { | ||
if (err) { | ||
if (err && !isTableAlreadyExistsError(err)) { | ||
error("Error while creating " + r.definition.TableName + ": " + JSON.stringify(err, null, 2)); | ||
@@ -847,3 +847,3 @@ cbCreate(err); | ||
debug(params.TableName + " created. Waiting for activiation."); | ||
cbCreate(null, { Table: { TableName: data.TableDescription.TableName, TableStatus: data ? data.TableDescription.TableStatus : "UNKNOWN"} }); | ||
cbCreate(null, { Table: { TableName: params.TableName, TableStatus: data ? data.TableDescription.TableStatus : "UNKNOWN"} }); | ||
} | ||
@@ -850,0 +850,0 @@ }); |
{ | ||
"author": "adrai", | ||
"name": "eventstore", | ||
"version": "1.13.1", | ||
"version": "1.13.2", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
@@ -1,2 +0,2 @@ | ||
#### [v1.13.1](https://github.com/adrai/node-eventstore/compare/v1.13.0...v1.13.1) | ||
#### [v1.13.2](https://github.com/adrai/node-eventstore/compare/v1.13.0...v1.13.2) | ||
- Fix concurrency issue in createTableIfNotExists (DynamoDB) [#118](https://github.com/adrai/node-eventstore/pull/118) thanks to [DannyRyman](https://github.com/DannyRyman) | ||
@@ -3,0 +3,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190686