|
|
@@ -1,7 +1,7 @@
|
|
|
import mongoose from 'mongoose';
|
|
|
|
|
|
import {
|
|
|
- IActivity, SupportedAction, SupportedActionType, AllSupportedActions, ActionGroupSize,
|
|
|
+ IActivity, SupportedActionType, AllSupportedActions, ActionGroupSize,
|
|
|
AllEssentialActions, AllSmallGroupActions, AllMediumGroupActions, AllLargeGroupActions,
|
|
|
} from '~/interfaces/activity';
|
|
|
import { IPage } from '~/interfaces/page';
|
|
|
@@ -96,11 +96,11 @@ class ActivityService {
|
|
|
}
|
|
|
|
|
|
return Array.from(availableActionsSet);
|
|
|
- }
|
|
|
+ };
|
|
|
|
|
|
shoudUpdateActivity = function(action: SupportedActionType): boolean {
|
|
|
return this.getAvailableActions().includes(action);
|
|
|
- }
|
|
|
+ };
|
|
|
|
|
|
// for GET request
|
|
|
createActivity = async function(parameters): Promise<void> {
|