Просмотр исходного кода

imprv: add installed-date to questionnaire answer
Add config to answer.

Tatsuya Ise 2 лет назад
Родитель
Сommit
5f68490115

+ 3 - 0
apps/app/src/features/questionnaire/server/service/questionnaire.ts

@@ -31,6 +31,8 @@ class QuestionnaireService {
     hasher.update(appSiteUrl);
     const appSiteUrlHashed = hasher.digest('hex');
 
+    const installedAt = this.crowi.configManager.getConfig('crowi', 'app:installed');
+
     const currentUsersCount = await User.countDocuments();
     const currentActiveUsersCount = await User.countActiveUsers();
 
@@ -60,6 +62,7 @@ class QuestionnaireService {
       },
       appSiteUrl: this.crowi.configManager.getConfig('crowi', 'questionnaire:isAppSiteUrlHashed') ? null : appSiteUrl,
       appSiteUrlHashed,
+      installedAt,
       type,
       currentUsersCount,
       currentActiveUsersCount,