feat: batch doc tagging

This commit is contained in:
Timothy J. Baek 2024-02-25 21:39:10 -08:00
parent 63628a70a6
commit 92c922b061
3 changed files with 199 additions and 36 deletions

View file

@ -5,7 +5,8 @@ export const createNewDoc = async (
collection_name: string,
filename: string,
name: string,
title: string
title: string,
content: object | null = null
) => {
let error = null;
@ -20,7 +21,8 @@ export const createNewDoc = async (
collection_name: collection_name,
filename: filename,
name: name,
title: title
title: title,
...(content ? { content: JSON.stringify(content) } : {})
})
})
.then(async (res) => {