mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
eslint фикс
This commit is contained in:
parent
bfccc5aac2
commit
d7bcaf8c2e
8 changed files with 24 additions and 24 deletions
|
@ -21,7 +21,7 @@ fastify.get('/api/getRate/', async function (req, res){
|
|||
return res.status(400).send({
|
||||
status: 400,
|
||||
message: 'The from_currency and conv_currency fields are required'
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
@ -58,13 +58,13 @@ fastify.get('/api/getChart/', async function (req, res){
|
|||
query['conv_currency'],
|
||||
query['start_date'],
|
||||
query['end_date'],
|
||||
)
|
||||
);
|
||||
|
||||
if (config['currency']['chart']['save']) chart.save_chart(
|
||||
charts,
|
||||
`${query['from_currency']} ${query['conv_currency']} ` +
|
||||
`(${query['start_date']} - ${query['end_date']}).png`
|
||||
)
|
||||
);
|
||||
|
||||
return res.status(200).send({
|
||||
status: 200,
|
||||
|
@ -75,9 +75,9 @@ fastify.get('/api/getChart/', async function (req, res){
|
|||
fastify.listen({
|
||||
port: 3000,
|
||||
host: config['server']['host'] ? config['server']['host'] : 'localhost',
|
||||
}, function (err) {
|
||||
}, (err) => {
|
||||
if (err) {
|
||||
fastify.log.error(err)
|
||||
process.exit(1)
|
||||
fastify.log.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
Loading…
Add table
Reference in a new issue