Bug in duplicate providers

This commit is contained in:
vandekul committed 2023-09-18 12:04:39 +02:00
1 parent 7810629596
commit fa5d459fa2
1 file changed
+2 -2
+2 -2
View File
@@ -24,8 +24,8 @@ class PaymentProvider(models.Model):
def create(self, values_list):
if values_list[0]['code'] == 'btcpay':
values_list[0]['btcpay_privateKey'] = crypto.generate_privkey()
if self.code == 'btcpay':
values_list['btcpay_privateKey'] = crypto.generate_privkey()
return super(PaymentProvider, self).create(values_list)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.