refactor: allow providing submit action to editor component to allow posting replys and not redirecting on post. fix: also clear the editor after posting
This commit is contained in:
1 parent
272a74cf5d
commit
aa85477fbe
5 files changed
+196
-65
No files matched your search
@@ -46,6 +46,7 @@ export const getUsersPostById = query({
|
||||
return await ctx.db
|
||||
.query('posts')
|
||||
.withIndex('by_user_id', q => q.eq('userId', args.userId))
|
||||
.filter(q => q.eq(q.field('parentPostId'), undefined))
|
||||
.order('desc')
|
||||
.paginate(args.paginationOpts);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user