add content-type to uploads
This commit is contained in:
1 parent
74c2a4597c
commit
ecd8f78fe4
3 files changed
+19
-12
No files matched your search
+2
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user