fix: refresh comment attachment previews
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
parent
f5a54f2814
commit
533d9ca856
2 changed files with 125 additions and 56 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue