diff options
| author | Adam Soltys <[email protected]> | 2023-12-01 11:36:35 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-01 11:36:35 -0800 |
| commit | 7709c1efde9a1f3078171ee56985cd25511d6f7b (patch) | |
| tree | cd996eaaa860cdb3d7da688e0ad4c5ec7bae1a0c /routes/users.js | |
| parent | 826c7b361c93905c4725755038d398221530051d (diff) | |
| download | coinos-server-7709c1efde9a1f3078171ee56985cd25511d6f7b.tar.gz coinos-server-7709c1efde9a1f3078171ee56985cd25511d6f7b.zip | |
biome formatter
Diffstat (limited to 'routes/users.js')
| -rw-r--r-- | routes/users.js | 9 |
1 files changed, 4 insertions, 5 deletions
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); } - }; |
