Skip to content

Commit

Permalink
fix: url download tables pro ajust
Browse files Browse the repository at this point in the history
  • Loading branch information
AldemirLucas committed Aug 14, 2024
1 parent a67ec44 commit 6c9f91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/pages/api/tables/downloadTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function downloadTable(url, datasetID, tableId, token, res) {
try {
const fileUrl = url === "free"
? `${process.env.URL_DOWNLOAD_TABLE}/${datasetID}/${tableId}/${tableId}.csv.gz`
: payloadToken?.pro_subscription_status === "active" ? `${process.env.URL_DOWNLOAD_PRIVATE_TABLE}/${datasetID}/${tableId}/${tableId}.csv.gz` : ""
: payloadToken?.pro_subscription_status === "active" ? `${process.env.URL_DOWNLOAD_PRIVATE_TABLE}/${datasetID}/${tableId}/${tableId}_bdpro.csv.gz` : ""

const response = await axios({
url: fileUrl,
Expand Down

0 comments on commit 6c9f91c

Please sign in to comment.