fix: refresh comment attachment previews

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
Factory Droid 2025-10-05 01:38:46 -03:00 committed by esdrasrenan
parent f5a54f2814
commit 533d9ca856
2 changed files with 125 additions and 56 deletions

View file

@ -1,4 +1,4 @@
import { action, query } from "./_generated/server";
import { action } from "./_generated/server";
import { v } from "convex/values";
export const generateUploadUrl = action({
@ -8,7 +8,7 @@ export const generateUploadUrl = action({
},
});
export const getUrl = query({
export const getUrl = action({
args: { storageId: v.id("_storage") },
handler: async (ctx, { storageId }) => {
const url = await ctx.storage.getUrl(storageId);