change console logs to console debug
This commit is contained in:
parent
7ba12db083
commit
6a68f81e59
@ -26,7 +26,7 @@ export const datatable = async (request: Request, response: Response) => {
|
|||||||
|
|
||||||
const data = await query;
|
const data = await query;
|
||||||
|
|
||||||
console.log(`total: ${recordsTotal} filtered: ${recordsFiltered} filtered+paged: ${data.length}`);
|
console.debug(`total: ${recordsTotal} filtered: ${recordsFiltered} filtered+paged: ${data.length}`);
|
||||||
|
|
||||||
data.forEach((item: any) => {
|
data.forEach((item: any) => {
|
||||||
item.channels = item.channels === "[null]"
|
item.channels = item.channels === "[null]"
|
||||||
|
@ -10,7 +10,7 @@ export const get = async (request: Request, response: Response) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(guild.toJSON());
|
console.debug(guild.toJSON());
|
||||||
|
|
||||||
response.render("guild/subscriptions", {
|
response.render("guild/subscriptions", {
|
||||||
title: `${guild.name} - Relay`,
|
title: `${guild.name} - Relay`,
|
||||||
|
@ -47,8 +47,8 @@ export const buildDatatableQuery = async (request: { query: RequestQuery }, quer
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (search) {
|
if (search) {
|
||||||
console.log("applying search: " + search)
|
console.debug("applying search: " + search)
|
||||||
console.log("columns: " + JSON.stringify(request.query.columns, null, 4));
|
console.debug("columns: " + JSON.stringify(request.query.columns, null, 4));
|
||||||
query = query.where(builder => {
|
query = query.where(builder => {
|
||||||
Object.values(request.query.columns)
|
Object.values(request.query.columns)
|
||||||
.filter(column => column.searchable === "true")
|
.filter(column => column.searchable === "true")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user