import { getSession } from "../lib/neo4j.js";
export async function sessionName(params) {
    const { sessionKey, name } = params;
    const neo4jSession = getSession();
    try {
        await neo4jSession.run(`MERGE (c:Conversation {sessionKey: $sessionKey})
       SET c.name = $name, c.updatedAt = datetime()`, { sessionKey, name });
    }
    finally {
        await neo4jSession.close();
    }
}
//# sourceMappingURL=session-name.js.map