Skip to content

Commit 2a6b24f

Browse files
committed
fix(cli): Ask for all changes
1 parent a0e0a4f commit 2a6b24f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/cli/lib/commands/push.js.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ const attributesToCreate = async (remoteAttributes, localAttributes, collection)
625625
return { Key: change.key, Action: change.action, Reason: change.reason, };
626626
}));
627627

628-
if (!cliConfig.force && (deleting.length > 0 || conflicts.length > 0)) {
628+
if (!cliConfig.force) {
629629
if (deleting.length > 0) {
630630
log(`Attribute deletion will cause ${chalk.red('loss of data')}`);
631631
}
@@ -1212,7 +1212,6 @@ const pushCollection = async ({ returnOnZero } = { returnOnZero: false }) => {
12121212
attributes = await attributesToCreate(collection.remoteVersion.attributes, collection.attributes, collection);
12131213

12141214
if (Array.isArray(attributes) && attributes.length <= 0) {
1215-
log(`No destructive changes has been detected. Skipping ${collection.name} ( ${collection['$id']} )`);
12161215
continue;
12171216
}
12181217
}

0 commit comments

Comments
 (0)