Skip to content

Commit

Permalink
To resolve a linting error from a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfannan committed Oct 4, 2023
1 parent 627b74f commit d5a0320
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/topics/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = function (Topics) {
isPrivate: false,
isAnonymous: false,
isUrgent: false,
isResolved: false,
};
// added code for sprint 1
// type casting
Expand All @@ -52,6 +53,10 @@ module.exports = function (Topics) {
* @type {boolean}
*/
topicData.isUrgent = data.isUrgent || false;
/**
* @type {boolean}
*/
topicData.isResolved = data.isResolved || false;

if (Array.isArray(data.tags) && data.tags.length) {
topicData.tags = data.tags.join(',');
Expand Down

0 comments on commit d5a0320

Please sign in to comment.