[CORL-1156] Q&A Feature Flag Fix (#3000)

* fix: fixed bug with feature flag handling

* chore: version bump
This commit is contained in:
Wyatt Johnson
2020-06-25 18:59:03 +00:00
committed by GitHub
parent 9022532525
commit bf04b4c2a6
9 changed files with 719 additions and 709 deletions
+2 -2
View File
@@ -1,7 +1,6 @@
import { Db } from "mongodb";
import { ERROR_TYPES } from "coral-common/errors";
import { Config } from "coral-server/config";
import {
CommentNotFoundError,
@@ -28,6 +27,7 @@ import {
hasPublishedStatus,
} from "coral-server/models/comment/helpers";
import {
resolveStoryMode,
retrieveStory,
Story,
updateStoryLastCommentedAt,
@@ -71,7 +71,7 @@ const markCommentAsAnswered = async (
now: Date
) => {
// We only process this if we're in Q&A mode.
if (story.settings.mode !== GQLSTORY_MODE.QA) {
if (resolveStoryMode(story.settings, tenant) !== GQLSTORY_MODE.QA) {
return;
}