Skip to content

Commit 4e4d122

Browse files
committed
Correctly import collections with same ID from different databases
1 parent fc4233c commit 4e4d122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/config.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class Local extends Config {
156156

157157
let collections = this.get("collections");
158158
for (let i = 0; i < collections.length; i++) {
159-
if (collections[i]['$id'] == props['$id']) {
159+
if (collections[i]['$id'] == props['$id'] && collections[i]['databaseId'] == props['databaseId']) {
160160
collections[i] = props;
161161
this.set("collections", collections);
162162
return;

0 commit comments

Comments
 (0)