mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Fix variable name
This commit is contained in:
parent
72b1c058c1
commit
2299d339a3
1 changed files with 2 additions and 2 deletions
|
@ -32,9 +32,9 @@ module.exports.fn = async (data, opts) => {
|
|||
const resUser = await req(urlUser, null, { Accept: 'application/json' })
|
||||
const jsonUser = await resUser.json()
|
||||
|
||||
const user = jsonUser.find((user) => user.username === match[2])
|
||||
const user = jsonUser.find((user) => user.username === data.username)
|
||||
if (!user) {
|
||||
reject(`No user with username ${match[2]}`)
|
||||
reject(`No user with username ${data.username}`)
|
||||
}
|
||||
|
||||
const urlProject = `https://${data.domain}/api/v4/users/${user.id}/projects`
|
||||
|
|
Loading…
Reference in a new issue