MCPcopy
hub / github.com/NginxProxyManager/nginx-proxy-manager / castJsonIfNeed

Function castJsonIfNeed

backend/lib/helpers.js:56–56  ·  view source on GitHub ↗
(colName)

Source from the content-addressed store, hash-verified

54 * @returns {string|Objection.ReferenceBuilder}
55 */
56const castJsonIfNeed = (colName) => (isPostgres() ? ref(colName).castText() : colName);
57
58export { parseDatePeriod, convertIntFieldsToBool, convertBoolFieldsToInt, castJsonIfNeed };

Callers 10

audit-log.jsFile · 0.90
dead-host.jsFile · 0.90
proxy-host.jsFile · 0.90
stream.jsFile · 0.90
host.jsFile · 0.90
defaultOrderMethod · 0.90
defaultOrderMethod · 0.90
defaultOrderMethod · 0.90
defaultOrderMethod · 0.90

Calls 1

isPostgresFunction · 0.90

Tested by

no test coverage detected