Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-Santana-j committed Apr 29, 2024
1 parent 79bff1b commit e305488
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ const stripe = require('stripe')(require('./config/web-config').stripe);

//TODO------------Configs--------------


const corsOptions = {
origin: 'https://api.mercadopago.com'
};
app.use(cors(corsOptions));


require('dotenv').config()

const client = new Discord.Client({ intents: botConfig.intents })
Expand Down Expand Up @@ -523,7 +530,7 @@ app.post('/accout/delete', async (req, res) => {
})
console.log(prod);
} catch (error) {

}
}
}
Expand Down
2 changes: 1 addition & 1 deletion views/sales.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
<label for="logo-input">
<img id="logo-preview" src="https://res.cloudinary.com/dgcnfudya/image/upload/v1704981573/gxorbaldn7fw5ojcv1s0.jpg" alt="">
</label>
<input name="productLogo" accept="image/*" hidden type="file" id="logo-input">
<input name="productLogo" accept=".png, .jpg, .jpeg" hidden type="file" id="logo-input">
</div>
</div>
Expand Down

0 comments on commit e305488

Please sign in to comment.