fix(server comments): fix pagination time confilct js <-> postgres

This commit is contained in:
Gergő Jedlicska
2022-03-11 10:31:59 +01:00
parent a9e545ae60
commit 519ea2ec2c
4 changed files with 82 additions and 19 deletions
@@ -69,8 +69,8 @@ module.exports = {
await authorizeResolver( context.userId, args.input.streamId, 'stream:reviewer' )
// the reply also has to be linked to the stream, for the recursive reply lookup to work
let input = { ...args.input, resources: [
{ id: args.input.parentComment, type: 'comment' },
{ id: args.input.streamId, type: 'stream' }
{ resourceId: args.input.parentComment, resourceType: 'comment' },
{ resourceId: args.input.streamId, resourceType: 'stream' }
] }
let id = await createComment( { userId: context.userId, input } )
await pubsub.publish( 'COMMENT_REPLY_CREATED', {