/** * What leaves the server for the browser. * * The quarantine (meta.rejects) stays inside the process - the database writes * it and tests read it - but it must not ride along in the panel's answer: on a * badly broken file it is up to a thousand raw rows of holding finances that no * screen reads. The служебная страница fetches quarantine with its own request. * * Applied once when the cache is set, not on every request: the answer is about * a megabyte and copying it per request would cost more than it saves. */ export function publicView(data) { if (!data?.meta || !('rejects' in data.meta)) return data; const { rejects, ...meta } = data.meta; return { ...data, meta }; }