feat: add new role 'bot'

This commit is contained in:
2025-09-09 19:26:52 +05:30
parent 3090b10192
commit 3e5169b454
5 changed files with 4 additions and 268 deletions

View File

@@ -80,21 +80,6 @@ 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,