Commit
·
c38ef3b
1
Parent(s):
b94fb23
🩹 Use passed fetch cc @julien-c
Browse files
src/routes/conversation/[id]/summarize/+server.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { collections } from "$lib/server/database.js";
|
|
| 5 |
import { error } from "@sveltejs/kit";
|
| 6 |
import { ObjectId } from "mongodb";
|
| 7 |
|
| 8 |
-
export async function POST({ params, locals }) {
|
| 9 |
const convId = new ObjectId(params.id);
|
| 10 |
|
| 11 |
const conversation = await collections.conversations.findOne({
|
|
|
|
| 5 |
import { error } from "@sveltejs/kit";
|
| 6 |
import { ObjectId } from "mongodb";
|
| 7 |
|
| 8 |
+
export async function POST({ params, locals, fetch }) {
|
| 9 |
const convId = new ObjectId(params.id);
|
| 10 |
|
| 11 |
const conversation = await collections.conversations.findOne({
|