Skip to content

Commit 22adb7d

Browse files
authored
Merge pull request #17 from thibaultdalban/patch-1
Fix confusing comments in User model
2 parents 951b7ce + 0bdb345 commit 22adb7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/models/users.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const getByEmail = async(email) => {
6767
throw new Error(`"${email}" is not a valid email address`)
6868
}
6969

70-
// Save
70+
// Query
7171
const params = {
7272
TableName: process.env.db,
7373
KeyConditionExpression: 'hk = :hk',
@@ -96,7 +96,7 @@ const getById = async(id) => {
9696
throw new Error(`"id" is required`)
9797
}
9898

99-
// Save
99+
// Query
100100
const params = {
101101
TableName: process.env.db,
102102
IndexName: process.env.dbIndex1,
@@ -133,4 +133,4 @@ module.exports = {
133133
getByEmail,
134134
getById,
135135
convertToPublicFormat,
136-
}
136+
}

0 commit comments

Comments
 (0)