message: bug: Fix problem with user export when chat rooms are not available
diff: @@ -121,12 +121,14 @@ const courseSchema = new mongoose.Schema({
  }
  }
  + if (doc.populated('chatRooms') !== undefined) {
  ret.chatRooms = ret.chatRooms.map((chatRoom: any) => {
  return chatRoom.toString();
  });
  }
  }
  }
  + }
  );
  courseSchema.pre('save', async function () {
  