Skip to content

Commit

Permalink
fix: eslint not building because of unused variable
Browse files Browse the repository at this point in the history
Removed unused code
  • Loading branch information
NicolasBrondin authored Apr 3, 2023
1 parent 469706b commit 335148e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server/services/stripeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,6 @@ module.exports = ({ strapi }) => ({
},
async deleteProduct(productId, stripeProductId) {
try {
const stripeSettings = await this.initialize();
let stripe;
if (stripeSettings.isLiveMode) {
stripe = new Stripe(stripeSettings.stripeLiveSecKey);
} else {
stripe = new Stripe(stripeSettings.stripeTestSecKey);
}
const response = await strapi
.query('plugin::strapi-stripe.ss-product')
.delete({ where: { id: productId } });
Expand Down

0 comments on commit 335148e

Please sign in to comment.