Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
fix seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 5, 2018
1 parent 609d090 commit 42bed3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/packages/prisma-cli-core/src/commands/seed/seed.ts
Expand Up @@ -22,6 +22,13 @@ export default class Seed extends Command {
const cluster = this.definition.getCluster()
this.env.setActiveCluster(cluster!)

await this.client.initClusterClient(
cluster!,
serviceName,
this.definition.stage,
this.definition.getWorkspace() || '*',
)

const seed = this.definition.definition!.seed
if (!seed) {
throw new Error(
Expand Down

0 comments on commit 42bed3e

Please sign in to comment.