Skip to content

Commit

Permalink
fix: convert user ID to string
Browse files Browse the repository at this point in the history
  • Loading branch information
liammulh committed Feb 8, 2023
1 parent 3f8367c commit 8e63e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/translationApi/getTranslationFormData.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const getTranslationFormData = async (

// Try to get saved translation in short-term storage database.
const filter = {
userId: Number( userId ), // The user ID should be a number since it gets stored in the DB as a number.
userId: userId.toString(), // The user ID should be a string since it's a string we get from website user data.
simName: simName,
locale: locale
};
Expand Down

0 comments on commit 8e63e82

Please sign in to comment.