Skip to content

Commit

Permalink
Merge pull request r0adkll#47 from xom9ikk/master
Browse files Browse the repository at this point in the history
Add missing params
  • Loading branch information
r0adkll authored Dec 9, 2020
2 parents f8ef4b6 + aa45a32 commit 0557086
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions lib/edits.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Expand Down Expand Up @@ -254,8 +254,10 @@ function uploadBundle(appEdit, options, bundleReleaseFile) {
function getPublishedReleaseName(appEdit, options) {
return __awaiter(this, void 0, void 0, function* () {
const track = yield androidPublisher.edits.tracks.get({
auth: options.auth,
editId: appEdit.id,
track: options.track
track: options.track,
packageName: options.applicationId
});
const release = track.data.releases[0]; // We only ever create one release, so grab the first one
return release.name;
Expand Down
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Expand Down
2 changes: 1 addition & 1 deletion lib/whatsnew.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Expand Down
6 changes: 4 additions & 2 deletions src/edits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,11 @@ async function uploadBundle(appEdit: AppEdit, options: EditOptions, bundleReleas

async function getPublishedReleaseName(appEdit: AppEdit, options: EditOptions): Promise<String | null | undefined> {
const track = await androidPublisher.edits.tracks.get({
auth: options.auth,
editId: appEdit.id!,
track: options.track
track: options.track,
packageName: options.applicationId
})
const release = track.data.releases![0] // We only ever create one release, so grab the first one
return release.name
}
}

0 comments on commit 0557086

Please sign in to comment.