Skip to content

Commit ac23dec

Browse files
authored
Fix vision-annotate-images sample (#1045)
1 parent 73e34e2 commit ac23dec

File tree

1 file changed

+1
-1
lines changed
  • vision-annotate-images/functions/src

1 file changed

+1
-1
lines changed

vision-annotate-images/functions/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const annotateImage = functions.https.onCall(async (data, context) => {
2020
);
2121
}
2222
try {
23-
return await client.annotateImage(JSON.parse(data));
23+
return await client.annotateImage(data);
2424
} catch (e) {
2525
throw new functions.https.HttpsError("internal", e.message, e.details);
2626
}

0 commit comments

Comments
 (0)