Add FIXME comment

This commit is contained in:
D. Berge
2023-11-02 11:38:27 +01:00
parent bccac446e5
commit 7dee457fa1

View File

@@ -9,6 +9,7 @@ async function list (projectId, opts = {}) {
const offset = Math.abs((opts.page-1)*opts.itemsPerPage) || 0;
const limit = Math.abs(Number(opts.itemsPerPage)) || null;
// FIXME Move this into the database as a view or something
const text = `
WITH counts AS (
SELECT pls.*, COALESCE(ppc.virgin, 0) na, COALESCE(ppc.tba, 0) tba