[builder] Replace hard-coded project name

Change-Id: I46d6991ad2284dd5ef51a7689cb5d4160814b38b
Reviewed-on: https://dart-review.googlesource.com/c/dart_ci/+/221643
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
diff --git a/builder/lib/src/firestore.dart b/builder/lib/src/firestore.dart
index 9dddf55..26d9247 100644
--- a/builder/lib/src/firestore.dart
+++ b/builder/lib/src/firestore.dart
@@ -409,20 +409,17 @@
           'configurations': <String>[configuration],
           'approved': approved
         });
-      await firestore.projects.databases.documents.createDocument(
-          document,
-          'projects/dart-ci-staging/databases/(default)/documents',
-          'try_results',
-          mask_fieldPaths: [
-            'name',
-            'result',
-            'previous_result',
-            'expected',
-            'review',
-            'patchset',
-            'configurations',
-            'approved'
-          ]);
+      await firestore.projects.databases.documents
+          .createDocument(document, documents, 'try_results', mask_fieldPaths: [
+        'name',
+        'result',
+        'previous_result',
+        'expected',
+        'review',
+        'patchset',
+        'configurations',
+        'approved'
+      ]);
       documentsWritten++;
       return approved;
     } else {