Skip to content

Commit

Permalink
use single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch committed Dec 11, 2024
1 parent 03dd5ca commit 4ff92bc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const schema = a.schema({
.arguments({
content: a.string().array()
})
.returns(a.ref("Post").array())
.returns(a.ref('Post').array())
// only allow signed-in users to call this API
.authorization(allow => [allow.authenticated()])
});
Expand Down Expand Up @@ -86,13 +86,13 @@ const schema = a.schema({
.arguments({
contents: a.string().array()
})
.returns(a.ref("Post").array())
.returns(a.ref('Post').array())
.authorization(allow => [allow.authenticated()])
// 1. Add the custom handler
.handler(
a.handler.custom({
dataSource: a.ref("Post"),
entry: "./BatchCreatePostHandler.js",
dataSource: a.ref('Post'),
entry: './BatchCreatePostHandler.js',
})
)
});
Expand All @@ -119,7 +119,7 @@ export function request(ctx) {
var now = util.time.nowISO8601();

return {
operation: "BatchPutItem",
operation: 'BatchPutItem',
tables: {
[`Post-${ctx.stash.awsAppsyncApiId}-${ctx.stash.amplifyBranchName}`]: ctx.args.contents.map((content) =>
util.dynamodb.toMapValues({
Expand Down

0 comments on commit 4ff92bc

Please sign in to comment.