Issue with UploadThing

I'll start saying that uploadThing is 🔥 I'm trying to add a cron job to delete all unlinked images. I'm using utapi.listFiles() and I see more images than what I see on the dashboard. I'm trying to use those fileKeys to delete the unlinked ones, i get a success:true answer but I can still see those files on the dashboard. Are you aware of a problem or do you think i'm doing something wrong?
1 Reply
IMESSE
IMESSE•13mo ago
@markr found the problem! It was caused by Next caching the fetch, this canary( pnpm add uploadthing@5.3.4-canary.47722af ) fixes it!
Want results from more Discord servers?
Add your server