bugfixing
This commit is contained in:
parent
b5f70d0b58
commit
0eae54c27f
@ -748,6 +748,13 @@ async function exportData(timePeriod:string) {
|
||||
let exportList = [];
|
||||
if(timePeriod === '1day') {
|
||||
exportList = await exportPriceData(timePeriod);
|
||||
exportList = exportList?.map(({ time, open, high, low, close }) => ({
|
||||
date: time,
|
||||
open,
|
||||
high,
|
||||
low,
|
||||
close,
|
||||
}));
|
||||
|
||||
} else if (data?.user?.tier === 'Pro') {
|
||||
exportList = await exportPriceData(timePeriod);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user