Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: support pushing app by app id instead of app version id #45

Merged
merged 5 commits into from
Oct 19, 2023

Conversation

tsemachLi
Copy link
Contributor

@@ -28,3 +29,9 @@ export const listAppVersionsByAppId = async (appId: AppId): Promise<Array<AppVer
throw new Error('Failed to list app versions.');
}
};

export const defaultVersionByAppId = async (appId: AppId): Promise<AppVersion | undefined> => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add unit test

Copy link
Contributor

@gregra81 gregra81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work 👏👏

expect(defaultVersion?.id).toEqual(2);
});

it('should return the latest draft version for the app', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename

@tsemachLi tsemachLi merged commit d8bf413 into master Oct 19, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants