feat: rts file validation

This commit is contained in:
2025-09-08 10:39:02 +05:30
parent 87ee2f03c1
commit 2e8ff517aa
7 changed files with 311 additions and 0 deletions

View File

@@ -80,6 +80,21 @@ export async function createNote(
return newNote.populate({ path: "createdBy", select: "pid name avatar" });
}
export async function createNoteBot(
content: string,
resourceId: string,
tenantId: string
) {
const newNote = await noteModel.create({
tenantId: tenantId,
pid: generateId(),
resourceId: resourceId,
content: content,
createdAt: new Date(),
createdBy: "6762acd606db9d07307a302d",
});
}
export async function updateNote(
input: CreateNoteInput,
resourceId: string,