Skip to content

Commit 684e7e2

Browse files
committed
Misc PR adjustment; fix conditional string to log status.
1 parent 0360a1b commit 684e7e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controllers/admin/restrictionController.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export const checkSanctionStatus = async (req: Request, res: Response) => {
1414
try {
1515
const result = await restrictionService.validateSellerLocation(longitude, latitude);
1616
const isSanctioned = !!result;
17-
logger.info(`User at [${latitude}, ${longitude}] is ${isSanctioned ? '' : 'not '} in a sanctioned zone.`);
17+
18+
const status = isSanctioned ? 'in a sanctioned zone' : 'not in a sanctioned zone';
19+
logger.info(`User at [${latitude}, ${longitude}] is ${status}.`);
1820
return res.status(200).json({
1921
message: `Sell center is set within a ${isSanctioned ? 'sanctioned' : 'unsanctioned' } zone`,
2022
isSanctioned

0 commit comments

Comments
 (0)