mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 23:51:01 -07:00
better readable code
This commit is contained in:
parent
42f75aa4c5
commit
a460ce866d
1 changed files with 5 additions and 6 deletions
|
@ -24,12 +24,11 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
|
|||
var offset = params.offset
|
||||
var timeout = config.user_recommendation.timeout
|
||||
var engine = config.user_recommendation.engine
|
||||
var url
|
||||
url = engine
|
||||
url = url.replace('{{host}}', hostName)
|
||||
url = url.replace('{{user}}', userName)
|
||||
url = url.replace('{{limit}}', limit)
|
||||
url = url.replace('{{offset}}', offset)
|
||||
const url = engine
|
||||
.replace('{{host}}', hostName)
|
||||
.replace('{{user}}', userName)
|
||||
.replace('{{limit}}', limit)
|
||||
.replace('{{offset}}', offset)
|
||||
request(
|
||||
{
|
||||
url: url,
|
||||
|
|
Loading…
Reference in a new issue