changed field from availability to isAvailable

This commit is contained in:
jackiettran
2025-11-24 17:36:18 -05:00
parent bb16d659bd
commit 42a5412582
10 changed files with 19 additions and 19 deletions

View File

@@ -192,7 +192,7 @@ router.post("/", authenticateToken, requireVerifiedEmail, async (req, res) => {
return res.status(404).json({ error: "Item not found" });
}
if (!item.availability) {
if (!item.isAvailable) {
return res.status(400).json({ error: "Item is not available" });
}