implement initialization of approval workflows on exam creation.
This commit is contained in:
@@ -22,9 +22,9 @@ export const getApprovalWorkflowsByEntities = async (collection: string, ids: st
|
||||
.toArray();
|
||||
};
|
||||
|
||||
export const getApprovalWorkflowByFormIntaker = async (entityId: string, formIntakerId: string) => {
|
||||
export const getApprovalWorkflowByFormIntaker = async (/* entityId: string, */ formIntakerId: string) => {
|
||||
return await db.collection<ApprovalWorkflow>("configured-workflows").findOne({
|
||||
entityId,
|
||||
/* entityId, */
|
||||
steps: {
|
||||
$elemMatch: {
|
||||
stepNumber: 1,
|
||||
|
||||
Reference in New Issue
Block a user