Skip to content

Commit

Permalink
fix: changes in previous commit that broke old cadt-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed Jul 19, 2024
1 parent 0756fc9 commit 7a4f632
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controllers/offer.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export const cancelImportedOfferFile = async (req, res) => {

export const getCurrentOfferInfo = async (req, res) => {
try {
/* fix for when old cadt-ui is no longer supported
try {
await assertActiveOfferFile();
} catch (error) {
Expand All @@ -185,6 +186,10 @@ export const getCurrentOfferInfo = async (req, res) => {
});
return;
}
*/

// replace with above
await assertActiveOfferFile();

const offerFileJson = await Meta.findOne({
where: { metaKey: 'activeOffer' },
Expand Down

0 comments on commit 7a4f632

Please sign in to comment.