#61 Fix version date returned for the article.createdAt
This commit is contained in:
@@ -87,6 +87,7 @@ class ArticleForListing(
|
||||
ArticleRef(id),
|
||||
ArticleAuthI<CitizenCartI>,
|
||||
Votable by VotableImp(),
|
||||
CreatedAt by CreatedAt.Imp(),
|
||||
CreatedBy<CitizenCartI>
|
||||
|
||||
interface ArticleForListingI : ArticleWithTitleI, CreatedBy<CitizenCartI> {
|
||||
|
||||
@@ -83,6 +83,7 @@ object FindArticles {
|
||||
object {
|
||||
val id = it.id
|
||||
val title = it.title
|
||||
val createdAt = it.createdAt
|
||||
val createdBy: Any = it.createdBy.toOutput()
|
||||
val workgroup = it.workgroup?.let {
|
||||
object {
|
||||
|
||||
@@ -23,6 +23,7 @@ begin
|
||||
select
|
||||
a.id,
|
||||
a.title,
|
||||
a.created_at,
|
||||
a.deleted_at,
|
||||
a.draft,
|
||||
find_citizen_by_id_with_user(a.created_by_id) as created_by,
|
||||
|
||||
Reference in New Issue
Block a user