use config value for pm path

This commit is contained in:
Robin Olsen
2026-03-10 13:44:59 +01:00
parent e4b6074303
commit 4c826193ee
6 changed files with 12 additions and 17 deletions

View File

@@ -83,8 +83,8 @@ func (s *MongoStorage) Close() error {
return s.client.Disconnect(context.Background())
}
func (s *MongoStorage) SubmitSurveyResponsesCmd(ctx context.Context) error {
pmDir := "./.pm/"
func (s *MongoStorage) SubmitSurveyResponsesCmd(ctx context.Context, dir string) error {
pmDir := dir
userStatscollection := s.client.Database("Responses").Collection("stats")
taskMetricsCollection := s.client.Database("Responses").Collection("metrics")