From 5bfe9fcd4ada3e95130229a80144a090476f641b Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Thu, 27 May 2021 18:57:40 +0300 Subject: [PATCH] Refactors post handler to store object. --- apps/cic-meta/scripts/server/handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cic-meta/scripts/server/handlers.ts b/apps/cic-meta/scripts/server/handlers.ts index c433be2f..f1b8c33b 100644 --- a/apps/cic-meta/scripts/server/handlers.ts +++ b/apps/cic-meta/scripts/server/handlers.ts @@ -31,7 +31,7 @@ function handleNoMergeGet(db, digest, keystore) { doh(e); }); }).catch((e) => { - console.error('mesage', e); + console.error('message', e); doh(e); }); }) @@ -46,7 +46,7 @@ function handleServerMergePost(data, db, digest, keystore, signer) { let e = undefined; let s = undefined; if (v === undefined) { - s = new Syncable(digest, data); + s = new Syncable(digest, o); s.onwrap = (e) => { whohoo(e.toJSON()); };