See following error generated for every request:
local.ALERT: Could not get cors config from DB - SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: boolean = integer
LINE 1: select * from "cors_config" where enabled = 1
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. (SQL: select * from "cors_config" where enabled = 1)
I believe it's related to whereRaw('enabled = 1') in original code.
But the enabled field is actually a boolean type, which triggered type mismatch error during query.