@@ -42,34 +42,30 @@ export const sortStandPlans = (plans: TeamSubSchemaType[]) => {
4242export const buildStandardPlan = (
4343 standard : TeamSubSchemaType ,
4444 standardConstants : NonNullable < ReturnType < typeof getStandardPlanConfig > >
45- ) : TeamPlanStandardType => {
46- return {
47- ...standard ,
48- name : standardConstants . name ,
49- desc : standardConstants . desc ,
50- price : standardConstants . price ,
51- priceDescription : standardConstants . priceDescription ,
52- customFormUrl : standardConstants . customFormUrl ,
53- customDescriptions : standardConstants . customDescriptions ,
54- wecom : standardConstants . wecom ,
55- maxTeamMember : standard ?. maxTeamMember ?? standardConstants . maxTeamMember ,
56- maxAppAmount : standard ?. maxApp ?? standardConstants . maxAppAmount ,
57- maxDatasetAmount : standard ?. maxDataset ?? standardConstants . maxDatasetAmount ,
58- requestsPerMinute : standard ?. requestsPerMinute ?? standardConstants . requestsPerMinute ,
59- chatHistoryStoreDuration :
60- standard ?. chatHistoryStoreDuration ?? standardConstants . chatHistoryStoreDuration ,
61- maxDatasetSize : standard ?. maxDatasetSize ?? standardConstants . maxDatasetSize ,
62- websiteSyncPerDataset :
63- standard ?. websiteSyncPerDataset ?? standardConstants . websiteSyncPerDataset ,
64- appRegistrationCount : standard ?. appRegistrationCount ?? standardConstants . appRegistrationCount ,
65- auditLogStoreDuration :
66- standard ?. auditLogStoreDuration ?? standardConstants . auditLogStoreDuration ,
67- ticketResponseTime : standard ?. ticketResponseTime ?? standardConstants . ticketResponseTime ,
68- customDomain : standard ?. customDomain ?? standardConstants . customDomain ,
69- maxUploadFileSize : standard ?. maxUploadFileSize ?? standardConstants . maxUploadFileSize ,
70- maxUploadFileCount : standard ?. maxUploadFileCount ?? standardConstants . maxUploadFileCount
71- } ;
72- } ;
45+ ) : TeamPlanStandardType => ( {
46+ ...standard ,
47+ name : standardConstants . name ,
48+ desc : standardConstants . desc ,
49+ price : standardConstants . price ,
50+ priceDescription : standardConstants . priceDescription ,
51+ customFormUrl : standardConstants . customFormUrl ,
52+ customDescriptions : standardConstants . customDescriptions ,
53+ wecom : standardConstants . wecom ,
54+ maxTeamMember : standard ?. maxTeamMember ?? standardConstants . maxTeamMember ,
55+ maxAppAmount : standard ?. maxApp ?? standardConstants . maxAppAmount ,
56+ maxDatasetAmount : standard ?. maxDataset ?? standardConstants . maxDatasetAmount ,
57+ requestsPerMinute : standard ?. requestsPerMinute ?? standardConstants . requestsPerMinute ,
58+ chatHistoryStoreDuration :
59+ standard ?. chatHistoryStoreDuration ?? standardConstants . chatHistoryStoreDuration ,
60+ maxDatasetSize : standard ?. maxDatasetSize ?? standardConstants . maxDatasetSize ,
61+ websiteSyncPerDataset : standard ?. websiteSyncPerDataset ?? standardConstants . websiteSyncPerDataset ,
62+ appRegistrationCount : standard ?. appRegistrationCount ?? standardConstants . appRegistrationCount ,
63+ auditLogStoreDuration : standard ?. auditLogStoreDuration ?? standardConstants . auditLogStoreDuration ,
64+ ticketResponseTime : standard ?. ticketResponseTime ?? standardConstants . ticketResponseTime ,
65+ customDomain : standard ?. customDomain ?? standardConstants . customDomain ,
66+ maxUploadFileSize : standard ?. maxUploadFileSize ?? standardConstants . maxUploadFileSize ,
67+ maxUploadFileCount : standard ?. maxUploadFileCount ?? standardConstants . maxUploadFileCount
68+ } ) ;
7369
7470export const getTeamStandPlan = async ( { teamId } : { teamId : string } ) => {
7571 const plans = await MongoTeamSub . find (
0 commit comments