Skip to content

Commit

Permalink
fix(engine-core): fix requestBatch for endpoint override
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 24, 2020
1 parent 63df07c commit 2fcfa6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/engine-core/src/NodeEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ ${this.lastErrorLog.fields.file}:${this.lastErrorLog.fields.line}:${this.lastErr
async requestBatch<T>(queries: string[], transaction = false): Promise<T> {
await this.start()

if (!this.child) {
if (!this.child && !this.engineEndpoint) {
throw new PrismaClientUnknownRequestError(
`Can't perform request, as the Engine has already been stopped`,
)
Expand Down

0 comments on commit 2fcfa6c

Please sign in to comment.