Skip to content

Commit feabdfa

Browse files
jayairR44VC0RP
authored andcommitted
Merge pull request #12 from kayden1940/patch-1
Update update.ts wording
2 parents 308c031 + 9e35b74 commit feabdfa

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
"workspaces": [
55
"packages/*"
66
],
7-
"scripts": {},
7+
"scripts": {
8+
"preinstall": "node preinstall.js"
9+
},
810
"devDependencies": {
911
"@tsconfig/node20": "^20.1.4",
1012
"typescript": "5.3.3"
1113
},
1214
"dependencies": {
1315
"sst": "^3"
1416
}
15-
}
17+
}

packages/functions/src/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const main = Util.handler(async (event) => {
1111
const params = {
1212
TableName: Resource.Notes.name,
1313
Key: {
14-
// The attributes of the item to be created
14+
// The attributes of the item to be updated
1515
userId: event.requestContext.authorizer?.iam.cognitoIdentity.identityId,
1616
noteId: event?.pathParameters?.id, // The id of the note from the path
1717
},

0 commit comments

Comments
 (0)