Skip to content

Commit

Permalink
fix: add all of the jurisdiction data to external
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan committed Feb 28, 2024
1 parent c53e50a commit 1274f23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/src/services/listing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,11 @@ export class ListingService implements OnModuleInit {
});
}
}
return JSON.stringify(listing);
// add additional jurisdiction fields for external purposed
const jurisdiction = await this.prisma.jurisdictions.findFirst({
where: { id: listing.jurisdictions.id },
});
return JSON.stringify({ ...listing, jurisdictions: jurisdiction });
}

/*
Expand Down

0 comments on commit 1274f23

Please sign in to comment.