Skip to content

Commit

Permalink
Fixed createReadStream as well, not present in fsProm
Browse files Browse the repository at this point in the history
  • Loading branch information
dangond-ptc committed Oct 13, 2023
1 parent b3c8af5 commit 9ca9b29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routers/history.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const express = require('express');
const fs = require('fs');
const fsProm = require('fs/promises');
const path = require('path');
const stream = require('stream');
Expand Down Expand Up @@ -94,7 +95,7 @@ router.get('/logs/:logPath', async function(req, res) {
return;
}

const readStream = fsProm.createReadStream(compressedLogPath);
const readStream = fs.createReadStream(compressedLogPath);
pipeReadStream(req, res, readStream);
});

Expand Down

0 comments on commit 9ca9b29

Please sign in to comment.