Browse Source

fix(load_mocks): Fix broken load-mocks script (#27222)

This broke due to moving `ReleaseFile` out to a separate database
Dan Fuller 3 years ago
parent
commit
820b0156e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/load-mocks

+ 1 - 1
bin/load-mocks

@@ -483,7 +483,7 @@ def main(num_events=1, extra_events=False, load_trends=False, slow=False):
                 for file in raw_commit["files"]:
                     ReleaseFile.objects.get_or_create(
                         organization_id=project.organization_id,
-                        release=release,
+                        release_id=release.id,
                         name=file[0],
                         file=File.objects.get_or_create(
                             name=file[0], type="release.file", checksum="abcde" * 8, size=13043