Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for datetime conditions match #93

Closed

Conversation

Siddharth1605
Copy link

No description provided.

foundMatchCondition = true;
response.reason = ApiResponseCodes.FlagMatch;
if (matchCondition.conditionType === "string") {
const hasMatch = getMatchByCondition(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getMatchByCondition is where the check on the conditionType should happen. please move the call of datetimeConditionMatcher into that function.

@@ -19,6 +19,41 @@ export type EvaluateResponse = {
responseId: string;
};

// New condition matcher for datetime conditions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move this function at the bottom of the file.

@Siddharth1605 Siddharth1605 closed this by deleting the head repository May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants