Skip to content

Commit 119b24c

Browse files
committed
fix(action): condition for restoring
1 parent 5121d60 commit 119b24c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/restoreImpl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export async function restoreImpl(
9292

9393
if (
9494
inputs.restorePrefixesFirstMatch.length > 0 &&
95-
!(lookedUpPrimaryKey && inputs.skipRestoreOnHitPrimaryKey)
95+
!(lookedUpPrimaryKey || inputs.skipRestoreOnHitPrimaryKey)
9696
) {
9797
utils.info(
9898
`
@@ -136,7 +136,7 @@ export async function restoreImpl(
136136
}
137137
}
138138

139-
if (!(lookedUpPrimaryKey && inputs.skipRestoreOnHitPrimaryKey)) {
139+
if (!(lookedUpPrimaryKey || inputs.skipRestoreOnHitPrimaryKey)) {
140140
restoredKeys.push(...(await restore.restoreAllMatches()));
141141
}
142142

0 commit comments

Comments
 (0)