mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
Сделал сохранение графика в роуте (если включено), при запросе его URL версии
This commit is contained in:
parent
644506ffa4
commit
16e960de3c
1 changed files with 6 additions and 0 deletions
|
@ -62,6 +62,12 @@ fastify.get('/api/getChart/', async function (req, res){
|
|||
query['end_date'],
|
||||
)
|
||||
|
||||
if (config['currency']['chart']['save_chart']) chart.save_chart(
|
||||
charts,
|
||||
`${query['from_currency']} ${query['conv_currency']} ` +
|
||||
`(${query['start_date']} - ${query['end_date']}).png`
|
||||
)
|
||||
|
||||
return res.status(200).send({
|
||||
status: 200,
|
||||
message: charts,
|
||||
|
|
Loading…
Add table
Reference in a new issue