Skip to content

Commit 21459c3

Browse files
committed
disable auto like
1 parent f9f60af commit 21459c3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

web/app/api/summarize/route.ts

-14
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,6 @@ export async function GET(request: NextRequest) {
145145
console.error('Error saving to summaries:', insertError);
146146
} else {
147147
newSummary = data;
148-
149-
if (userId) {
150-
// Auto-like the summary if successfully created
151-
const { error: likeError } = await supabase
152-
.from('summary_likes')
153-
.insert({
154-
summary_id: newSummary.id,
155-
user_id: userId,
156-
});
157-
158-
if (likeError) {
159-
console.error('Error adding to summary_likes:', likeError);
160-
}
161-
}
162148
}
163149

164150
// Return the newly generated summary

0 commit comments

Comments
 (0)