From 7709c1efde9a1f3078171ee56985cd25511d6f7b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 1 Dec 2023 11:36:35 -0800 Subject: biome formatter --- routes/users.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'routes/users.js') diff --git a/routes/users.js b/routes/users.js index 41c3bfd5..d3dff28b 100644 --- a/routes/users.js +++ b/routes/users.js @@ -315,7 +315,7 @@ export default { if (!subscriptions) subscriptions = []; if ( !subscriptions.find( - s => JSON.stringify(s) === JSON.stringify(subscription) + (s) => JSON.stringify(s) === JSON.stringify(subscription) ) ) subscriptions.push(subscription); @@ -360,10 +360,10 @@ export default { for (let { ref } of ( await Promise.all( - payments.reverse().map(async id => await g(`payment:${id}`)) + payments.reverse().map(async (id) => await g(`payment:${id}`)) ) - ).filter(p => p.type === types.internal && p.ref)) { - let i = contacts.findIndex(c => c && c.id === ref); + ).filter((p) => p.type === types.internal && p.ref)) { + let i = contacts.findIndex((c) => c && c.id === ref); if (~i) contacts.splice(i, 1); let u = await g(`user:${ref}`); if (typeof u === "string") u = await g(`user:${ref}`); @@ -437,5 +437,4 @@ export default { console.log("test", test); res.send(test); } - }; -- cgit v1.2.3