Skip to content

Commit 0934612

Browse files
authored
fix nested data object (#136)
1 parent a63d09b commit 0934612

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mondaycom/apps-cli",
3-
"version": "4.8.0",
3+
"version": "4.8.1",
44
"description": "A cli tool to manage apps (and monday-code projects) in monday.com",
55
"author": "monday.com Apps Team",
66
"type": "module",

src/services/push-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const uploadClientZipFile = async (appVersionId: number, buffer: Buffer)
7272
body: formData,
7373
timeout: CLIENT_ZIP_UPLOAD_TIMEOUT,
7474
});
75-
return response.data;
75+
return response.data.data;
7676
};
7777

7878
export const getAppVersionDeploymentStatus = async (appVersionId: number, region?: Region) => {

src/services/schemas/push-service-schemas.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ export const signedUrlSchema = z
1111
export const uploadClientSchema = z
1212
.object({
1313
data: z.object({
14-
url: z.string(),
15-
sourceUrl: z.string(),
14+
data: z.object({
15+
url: z.string(),
16+
sourceUrl: z.string(),
17+
}),
1618
}),
1719
})
1820
.merge(baseResponseHttpMetaDataSchema);

0 commit comments

Comments
 (0)