fix(server): commit query not returning author id as expected by resolvers (#2549)
This commit is contained in:
Родитель
5ae0d6dd97
Коммит
2e7f1578b1
|
@ -183,7 +183,8 @@ module.exports = {
|
|||
{ branchName: 'branches.name' },
|
||||
{ authorName: 'users.name' },
|
||||
{ authorId: 'users.id' },
|
||||
{ authorAvatar: 'users.avatar' }
|
||||
{ authorAvatar: 'users.avatar' },
|
||||
knex.raw(`?? as "author"`, ['users.id'])
|
||||
])
|
||||
.select()
|
||||
.join('commits', 'commits.id', 'stream_commits.commitId')
|
||||
|
|
Загрузка…
Ссылка в новой задаче