From a08da64d4ef059eb178b48223a6fd11acf6beb23 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Tue, 24 Feb 2026 13:29:09 +1300 Subject: [PATCH] Update +server.ts --- materialious/src/routes/api/user/history/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/materialious/src/routes/api/user/history/+server.ts b/materialious/src/routes/api/user/history/+server.ts index 1073b6af..17d8d558 100644 --- a/materialious/src/routes/api/user/history/+server.ts +++ b/materialious/src/routes/api/user/history/+server.ts @@ -67,7 +67,7 @@ export async function POST({ locals, request }) { // Cull any history older then 3 months. const threeMonthsAgo = new Date(); threeMonthsAgo.setMonth(threeMonthsAgo.getMonth() - 3); - await getSequelize().UserHistoryTable.destroy({ + getSequelize().UserHistoryTable.destroy({ where: { UserId: locals.userId, watched: {