@opengis/fastify-table 1.3.25 → 1.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -56,6 +56,7 @@ ALTER TABLE crm.files ADD COLUMN IF NOT EXISTS tags text[];
|
|
|
56
56
|
ALTER TABLE crm.files ADD COLUMN IF NOT EXISTS file_path text;
|
|
57
57
|
ALTER TABLE crm.files ADD COLUMN IF NOT EXISTS ismain boolean default false;
|
|
58
58
|
ALTER TABLE crm.files ADD COLUMN IF NOT EXISTS isverified boolean default false;
|
|
59
|
+
ALTER TABLE crm.files ADD COLUMN IF NOT EXISTS resized boolean;
|
|
59
60
|
ALTER TABLE crm.files ADD COLUMN IF NOT EXISTS uid text;
|
|
60
61
|
ALTER TABLE crm.files ADD COLUMN IF NOT EXISTS files json;
|
|
61
62
|
ALTER TABLE crm.files ADD COLUMN IF NOT EXISTS cdate timestamp without time zone DEFAULT (now())::timestamp without time zone;
|
|
@@ -92,7 +92,7 @@ export default async function logChanges({
|
|
|
92
92
|
entity_key: el,
|
|
93
93
|
value_old: getValue(old?.[el], table),
|
|
94
94
|
value_new: type === 'DELETE' ? null : getValue(newObj?.[el], table),
|
|
95
|
-
value_hash: createHash('md5').update(JSON.stringify(newObj?.[el])).digest('hex'),
|
|
95
|
+
value_hash: newObj?.[el] ? createHash('md5').update(JSON.stringify(newObj?.[el])).digest('hex') : null,
|
|
96
96
|
uid,
|
|
97
97
|
})).filter(el => (old?.[el.entity_key] !== el.value_hash));
|
|
98
98
|
|