Skip to content

Commit 1d7ead4

Browse files
committed
insertUser query fix
1 parent e91ebee commit 1d7ead4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api-sample/src/actions/users/createUser/queries/insertUser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ const insertUser = ({
1313
last_name,
1414
email,
1515
password,
16-
user_type_id,
16+
user_type_id
1717
)
1818
VALUES
1919
(
2020
${firstName},
2121
${lastName},
2222
${email},
23-
sha2(concat(${password},${process.env.password_salt}), 224),
24-
${userTypeId},
23+
SHA2(CONCAT(${password},${process.env.PASSWORD_SALT}), 224),
24+
${userTypeId}
2525
)
2626
`;
2727

0 commit comments

Comments
 (0)