Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
add deployment versions data
Browse files Browse the repository at this point in the history
  • Loading branch information
pierce-h committed Sep 9, 2020
1 parent 3f3e4c0 commit 680ff90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/api-client/resources/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as fs from "fs";
import FormData from "form-data";
import ShipengineAPIClient from "..";
import { Deployment, PaginatedItems } from "../../types";
import getVersions from '../../utils/get-versions';

export default class Deployments {
private client: ShipengineAPIClient;
Expand All @@ -24,6 +25,7 @@ export default class Deployments {
const form = new FormData();

form.append("deployment", fs.createReadStream(pathToTarball));
form.append("versions", JSON.stringify(getVersions()))

const response = await this.client.call<Deployment>({
endpoint: `apps/${appId}/deploys`,
Expand Down

0 comments on commit 680ff90

Please sign in to comment.