From 846df9e0f36145aae237818362dadff78453a7b9 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Wed, 17 Sep 2025 17:15:34 +0000
Subject: [PATCH] GS-2308
---
lib/db.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/db.js b/lib/db.js
index 96dfa0e..0cc8cc2 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -90,9 +90,9 @@
try {
let userSearchQuery = await getUserSearchQuery(offset, limit, search)
- log.info(userSearchQuery)
+ // log.info(userSearchQuery)
const [results, fields] = await pool.query(userSearchQuery)
- console.log(results, fields)
+ // console.log(results, fields)
const count = await getUserCount(offset, limit, search)
return {
total: count,
@@ -221,7 +221,7 @@
async function getKurse () {
const pool = await poolP
- const q = `SELECT or2.ref_id, or2.obj_id, od.title, od.description, od.type
+ const q = `SELECT or2.ref_id, or2.obj_id, od.title, od.description, od.type, od.offline
FROM ${database}.object_reference or2
INNER JOIN ${database}.object_data od ON od.obj_id = or2.obj_id
WHERE od.type = 'crs'
@@ -238,7 +238,7 @@
async function getKurs (ref_id) {
const pool = await poolP
- const q = `SELECT or2.ref_id, or2.obj_id, od.title, od.description, od.type, od.create_date
+ const q = `SELECT or2.ref_id, or2.obj_id, od.title, od.description, od.type, od.create_date, od.offline
FROM ${database}.object_reference or2
INNER JOIN ${database}.object_data od ON od.obj_id = or2.obj_id
WHERE or2.ref_id = '${ref_id}'
--
Gitblit v1.8.0