CJVT updates August and September 2026
This commit is contained in:
@@ -27,9 +27,7 @@ class ConsultancyEntry {
|
||||
domain_primary_id: domainPrimaryId,
|
||||
first_name: firstName,
|
||||
last_name: lastName,
|
||||
is_moderator: isModerator,
|
||||
formatted_time_created: formattedTimeCreated,
|
||||
formatted_time_published: formattedTimePublished
|
||||
is_moderator: isModerator
|
||||
}) {
|
||||
this.id = id
|
||||
this.idExternal = idExternal
|
||||
@@ -51,8 +49,6 @@ class ConsultancyEntry {
|
||||
this.firstName = firstName
|
||||
this.lastName = lastName
|
||||
this.isModerator = isModerator
|
||||
this.formattedTimeCreated = formattedTimeCreated
|
||||
this.formattedTimePublished = formattedTimePublished
|
||||
}
|
||||
|
||||
// Fetch consultancy entry by ID
|
||||
@@ -65,7 +61,7 @@ class ConsultancyEntry {
|
||||
|
||||
id,
|
||||
id_external,
|
||||
to_char(time_created,'DD. MM. YYYY') time_created,
|
||||
time_created,
|
||||
status,
|
||||
author_id,
|
||||
institution,
|
||||
@@ -73,7 +69,7 @@ class ConsultancyEntry {
|
||||
domain_primary_id_initial,
|
||||
existing_solutions,
|
||||
examples_of_use,
|
||||
to_char(time_published,'DD. MM. YYYY') time_published,
|
||||
time_published,
|
||||
title,
|
||||
question,
|
||||
answer,
|
||||
@@ -96,7 +92,7 @@ class ConsultancyEntry {
|
||||
|
||||
id,
|
||||
id_external,
|
||||
to_char(time_created, 'DD. MM. YYYY') time_created,
|
||||
time_created,
|
||||
status,
|
||||
author_id,
|
||||
institution,
|
||||
@@ -104,7 +100,7 @@ class ConsultancyEntry {
|
||||
domain_primary_id_initial,
|
||||
existing_solutions,
|
||||
examples_of_use,
|
||||
to_char(time_published,'DD. MM. YYYY') time_published,
|
||||
time_published,
|
||||
title,
|
||||
question,
|
||||
answer,
|
||||
@@ -179,12 +175,12 @@ class ConsultancyEntry {
|
||||
static async fetchWithStatusById(status, id) {
|
||||
const sqlQuery = `
|
||||
SELECT ce.id,
|
||||
to_char(time_created, 'FMDD. FMMM. YYYY') formatted_time_created,
|
||||
time_created,
|
||||
author_id,
|
||||
institution,
|
||||
description,
|
||||
domain_primary_id_initial,
|
||||
to_char(time_published, 'FMDD. FMMM. YYYY') time_published,
|
||||
time_published,
|
||||
title,
|
||||
question,
|
||||
answer,
|
||||
@@ -245,12 +241,12 @@ class ConsultancyEntry {
|
||||
static async fetchAllByStatusWithAuthorData(status) {
|
||||
const sqlQuery = `
|
||||
SELECT ce.id,
|
||||
to_char(time_created, 'FMDD. FMMM. YYYY') formatted_time_created,
|
||||
time_created,
|
||||
author_id,
|
||||
institution,
|
||||
description,
|
||||
domain_primary_id_initial,
|
||||
to_char(time_published, 'FMDD. FMMM. YYYY') time_published,
|
||||
time_published,
|
||||
title,
|
||||
question,
|
||||
answer,
|
||||
@@ -303,12 +299,12 @@ class ConsultancyEntry {
|
||||
static async fetch5MostRecentPublished() {
|
||||
const sqlQuery = `
|
||||
SELECT ce.id,
|
||||
to_char(time_created, 'FMDD. FMMM. YYYY') formatted_time_created,
|
||||
time_created,
|
||||
author_id,
|
||||
institution,
|
||||
description,
|
||||
domain_primary_id_initial,
|
||||
to_char(time_published, 'FMDD. FMMM. YYYY') time_published,
|
||||
time_published,
|
||||
title,
|
||||
question,
|
||||
answer,
|
||||
|
||||
Reference in New Issue
Block a user