mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
Expand pages.* to prevent duplicate columns in MSSQL
Replace pages.* in select query with explicit list of columns to avoid multiple identically named columns being returned by MSSQL
This commit is contained in:
parent
7c8604b97c
commit
0e851eade9
@ -675,7 +675,26 @@ module.exports = class Page extends Model {
|
||||
try {
|
||||
return WIKI.models.pages.query()
|
||||
.column([
|
||||
'pages.*',
|
||||
'pages.id',
|
||||
'pages.path',
|
||||
'pages.hash',
|
||||
'pages.title',
|
||||
'pages.description',
|
||||
'pages.isPrivate',
|
||||
'pages.isPublished',
|
||||
'pages.privateNS',
|
||||
'pages.publishStartDate',
|
||||
'pages.publishEndDate',
|
||||
'pages.content',
|
||||
'pages.render',
|
||||
'pages.toc',
|
||||
'pages.contentType',
|
||||
'pages.createdAt',
|
||||
'pages.updatedAt',
|
||||
'pages.editorKey',
|
||||
'pages.localeCode',
|
||||
'pages.authorId',
|
||||
'pages.creatorId',
|
||||
{
|
||||
authorName: 'author.name',
|
||||
authorEmail: 'author.email',
|
||||
|
Loading…
Reference in New Issue
Block a user