mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 06:43:08 +02:00
Fix bug
Use `let` instead of `const`
This commit is contained in:
parent
da7c98ff3f
commit
a63de6d776
1 changed files with 2 additions and 2 deletions
|
@ -19,13 +19,13 @@ module.exports = (params, me) =>
|
|||
new Promise(async (res, rej) =>
|
||||
{
|
||||
// Get 'user_id' parameter
|
||||
const userId = params.user_id;
|
||||
let userId = params.user_id;
|
||||
if (userId === undefined || userId === null || userId === '') {
|
||||
userId = null;
|
||||
}
|
||||
|
||||
// Get 'username' parameter
|
||||
const username = params.username;
|
||||
let username = params.username;
|
||||
if (username === undefined || username === null || username === '') {
|
||||
username = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue