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: {