Merge pull request #20067 from overleaf/jpa-fix-old-blob-download

[web] project-history expects history-v1 id in blob requests

GitOrigin-RevId: d9170a12fc6070811c188b346dbac32accabbfd7
This commit is contained in:
Jakob Ackermann
2024-08-22 11:43:55 +02:00
committed by Copybot
parent 5cc83d7467
commit f0e06c8cd0
4 changed files with 30 additions and 5 deletions
@@ -92,9 +92,10 @@ describe('HttpController', function () {
beforeEach(function () {
this.blobHash = 'abcd'
this.stream = {}
this.historyId = 1337
this.HistoryStoreManager.getProjectBlobStream.yields(null, this.stream)
this.HttpController.getProjectBlob(
{ params: { project_id: this.projectId, hash: this.blobHash } },
{ params: { history_id: this.historyId, hash: this.blobHash } },
this.res,
this.next
)
@@ -102,7 +103,7 @@ describe('HttpController', function () {
it('should get a blob stream', function () {
this.HistoryStoreManager.getProjectBlobStream
.calledWith(this.projectId, this.blobHash)
.calledWith(this.historyId, this.blobHash)
.should.equal(true)
this.pipeline.should.have.been.calledWith(this.stream, this.res)
})