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:
@@ -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