Skip to content

Commit

Permalink
Merge pull request #85 from NicolasBrondin/fix/eslint
Browse files Browse the repository at this point in the history
fix: eslint not building because of unused variable
  • Loading branch information
nishekh-e-r authored Jun 14, 2023
2 parents 469706b + 335148e commit 484af60
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 484af60

Please sign in to comment.