From 9c089041b1eff30b5730e90410a0c002c2743c14 Mon Sep 17 00:00:00 2001 From: joshua-who-now <82421903+PBnJeli@users.noreply.github.com> Date: Wed, 12 May 2021 02:12:28 -0500 Subject: [PATCH] #665 Checkmarks Changes approval behavior (does not auto check for both anymore). Post is verified IF both users are logged and user's trade is approved. --- api/services/References.js | 6 +++--- assets/views/home/row.ejs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/services/References.js b/api/services/References.js index 05053a8a..a53612a7 100644 --- a/api/services/References.js +++ b/api/services/References.js @@ -11,10 +11,10 @@ exports.approve = function (ref, approve) { }).then(otherRef => { var refsToSave = [ref]; if (otherRef) { - otherRef.approved = approve; - otherRef.verified = approve; + //otherRef.approved = approve; + otherRef.verified = true; refsToSave.push(otherRef); - ref.verified = approve; + ref.verified = true; } return Promise.all(refsToSave.map(el => el.save())).then(refs => refs[0]); }); diff --git a/assets/views/home/row.ejs b/assets/views/home/row.ejs index db8c9557..63df338d 100644 --- a/assets/views/home/row.ejs +++ b/assets/views/home/row.ejs @@ -39,7 +39,7 @@ * - +