Skip to content

Commit a609fee

Browse files
authored
Merge pull request #4065 from SaptakS/fix-unsigned-nda
Retrieve bounty document for new bounty creation on transaction update
2 parents 3371ebc + cb9445a commit a609fee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/dashboard/helpers.py

+4
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,10 @@ def create_new_bounty(old_bounties, bounty_payload, bounty_details, bounty_id):
477477
)
478478
if latest_old_bounty_dict['bounty_reserved_for_user']:
479479
latest_old_bounty_dict['bounty_reserved_for_user'] = Profile.objects.get(pk=latest_old_bounty_dict['bounty_reserved_for_user'])
480+
if latest_old_bounty_dict['unsigned_nda']:
481+
latest_old_bounty_dict['unsigned_nda'] = BountyDocuments.objects.filter(
482+
pk=latest_old_bounty_dict['unsigned_nda']
483+
).first()
480484
bounty_kwargs.update(latest_old_bounty_dict)
481485

482486
try:

0 commit comments

Comments
 (0)