Преглед изворни кода

imprv: add installed-date to questionnaire answer
add comment

Tatsuya Ise пре 2 година
родитељ
комит
1d10151d02
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      apps/app/src/features/questionnaire/server/service/questionnaire.ts

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

@@ -33,6 +33,7 @@ class QuestionnaireService {
     hasher.update(appSiteUrl);
     hasher.update(appSiteUrl);
     const appSiteUrlHashed = hasher.digest('hex');
     const appSiteUrlHashed = hasher.digest('hex');
 
 
+    // Get the oldest user who probably installed this GROWI.
     const users = await User.find({ createdAt: { $ne: null } }).limit(1).sort({ createdAt: 1 });
     const users = await User.find({ createdAt: { $ne: null } }).limit(1).sort({ createdAt: 1 });
     const installedAtByOldestUser = users[0].createdAt;
     const installedAtByOldestUser = users[0].createdAt;