add content-type to uploads

This commit is contained in:
ntr committed 2024-04-23 00:28:25 +10:00
1 parent 74c2a4597c
commit ecd8f78fe4
3 files changed
+19 -12

No files matched your search

+2 -1
View File
@@ -65,7 +65,8 @@ export default async function memeService(baseLog: Logger, prisma: PrismaClient,
async function persist(m: Meme) {
const index = meili.index('memes')
return index.updateDocuments([m])
const doc = ({ ...m, postedAt: m.postedAt.valueOf() })
return index.updateDocuments([doc])
}
await ensureMeiliIndex();