rename IMAGE request type to MEDIA to be consistent

This commit is contained in:
Holly Stubbs 2025-01-27 10:01:19 +00:00
parent 5e271af9c9
commit f2a0bfdcea

View file

@ -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({