Skip to content

Commit fd2da6e

Browse files
authored
Merge pull request #486 from SailsGoal/issue-485-fix
resolve #485
2 parents c8d2ad9 + 190e118 commit fd2da6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/v1/internal/transaction-executor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* limitations under the License.
1818
*/
1919

20-
import { newError, SERVICE_UNAVAILABLE, SESSION_EXPIRED } from '../error'
20+
import { newError, Neo4jError, SERVICE_UNAVAILABLE, SESSION_EXPIRED } from '../error'
2121

2222
const DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000 // 30 seconds
2323
const DEFAULT_INITIAL_RETRY_DELAY_MS = 1000 // 1 seconds
@@ -199,6 +199,7 @@ export default class TransactionExecutor {
199199
static _canRetryOn (error) {
200200
return (
201201
error &&
202+
error instanceof Neo4jError &&
202203
error.code &&
203204
(error.code === SERVICE_UNAVAILABLE ||
204205
error.code === SESSION_EXPIRED ||

0 commit comments

Comments
 (0)