🪻 distributed transcription service thistle.dunkirk.sh
at main 420 B view raw
1#!/usr/bin/env bun 2 3import db from "../src/db/schema"; 4 5console.log("🧹 Clearing all rate limit attempts..."); 6 7const result = db.run("DELETE FROM rate_limit_attempts"); 8 9const deletedCount = result.changes; 10 11if (deletedCount === 0) { 12 console.log("ℹ️ No rate limit attempts to clear"); 13} else { 14 console.log( 15 `✅ Successfully cleared ${deletedCount} rate limit attempt${deletedCount === 1 ? "" : "s"}`, 16 ); 17}