rename IMAGE request type to MEDIA to be consistent
This commit is contained in:
parent
5e271af9c9
commit
f2a0bfdcea
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
@ -87,7 +87,7 @@ fastify.addHook("preHandler", (req, res, done) => {
|
|||
|
||||
if (media) {
|
||||
// @ts-ignore
|
||||
req.logType = cyan("IMAGE");
|
||||
req.logType = cyan("MEDIA");
|
||||
const fileStore = HashFS.GetHashFSInstance("images");
|
||||
const readStream = createReadStream(join(fileStore.path, fileStore.GetRelativePath(media.Hash)));
|
||||
res.raw.writeHead(200, HeaderUtility.CombineHeaders({
|
||||
|
|
Loading…
Add table
Reference in a new issue