ability to ban and unban users
This commit is contained in:
@@ -137,6 +137,10 @@ router.get("/", async (req, res, next) => {
|
||||
model: User,
|
||||
as: "owner",
|
||||
attributes: ["id", "firstName", "lastName", "imageFilename"],
|
||||
where: {
|
||||
isBanned: { [Op.ne]: true }
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
limit: parseInt(limit),
|
||||
|
||||
Reference in New Issue
Block a user