sequelize-core-papandreou
Advanced tools
Comparing version 7.0.0-alpha.41-patch6 to 7.0.0-alpha.41-patch7
@@ -457,3 +457,9 @@ "use strict"; | ||
const shards = this.options.sharding.shards.map((shard) => { | ||
return { shardId: shard.shardId, writeConfig: { ...shard.write }, readConfig: shard.read }; | ||
return { | ||
shardId: shard.shardId, | ||
writeConfig: { ...shard.write }, | ||
readConfig: Array.isArray(shard.read) ? shard.read.map((readConfigEntry) => ({ | ||
...readConfigEntry | ||
})) : shard.read | ||
}; | ||
}); | ||
@@ -460,0 +466,0 @@ this.pool = new import_sharded_replication_pool.ShardedReplicationPool({ |
{ | ||
"name": "sequelize-core-papandreou", | ||
"description": "Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication and more.", | ||
"version": "7.0.0-alpha.41-patch6", | ||
"version": "7.0.0-alpha.41-patch7", | ||
"funding": [ | ||
@@ -6,0 +6,0 @@ { |
Sorry, the diff of this file is not supported yet
3085337
38336