consistent profile image, initials with background color as backup, better profile image editing

This commit is contained in:
jackiettran
2025-12-12 23:08:54 -05:00
parent 3f319bfdd0
commit 55e08e14b8
11 changed files with 196 additions and 184 deletions

View File

@@ -66,7 +66,7 @@ router.get("/renting", authenticateToken, async (req, res) => {
{
model: User,
as: "owner",
attributes: ["id", "firstName", "lastName"],
attributes: ["id", "firstName", "lastName", "imageFilename"],
},
],
order: [["createdAt", "DESC"]],
@@ -94,7 +94,7 @@ router.get("/owning", authenticateToken, async (req, res) => {
{
model: User,
as: "renter",
attributes: ["id", "firstName", "lastName"],
attributes: ["id", "firstName", "lastName", "imageFilename"],
},
],
order: [["createdAt", "DESC"]],