Skip to content

Commit

Permalink
make changes to add description to groups (#2052)
Browse files Browse the repository at this point in the history
Co-authored-by: Vinit khandal <[email protected]>
  • Loading branch information
pallabez and vinit717 authored Jun 29, 2024
1 parent 5b9cc73 commit 2f141ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/discordactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const createGroupRole = async (req, res) => {
const groupRoleData = {
rolename,
createdBy: req.userData.id,
description: req.body.description || "",
date: admin.firestore.Timestamp.fromDate(new Date()),
};

Expand Down
1 change: 1 addition & 0 deletions middlewares/validators/discordactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { validateMillisecondsTimestamp } = require("./utils");
const validateGroupRoleBody = async (req, res, next) => {
const schema = Joi.object({
rolename: Joi.string().trim().required(),
description: Joi.string().trim(),
});

try {
Expand Down

0 comments on commit 2f141ff

Please sign in to comment.