summary refs log tree commit diff
path: root/src/api/routes/users
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-17 07:47:57 +0100
committerRory& <root@rory.gay>2025-12-17 07:47:57 +0100
commit17579462d03b78bbdb39045e8539dadd22307872 (patch)
treee75abb0f0c62b7f4691945adfb4c8b704b3c95c3 /src/api/routes/users
parentPrettier 4 (diff)
downloadserver-ts-17579462d03b78bbdb39045e8539dadd22307872.tar.xz
Prettier 5
Diffstat (limited to 'src/api/routes/users')
-rw-r--r--src/api/routes/users/@me/disable.ts5
-rw-r--r--src/api/routes/users/@me/notes.ts5
2 files changed, 2 insertions, 8 deletions
diff --git a/src/api/routes/users/@me/disable.ts b/src/api/routes/users/@me/disable.ts

index 07e06055..73de8395 100644 --- a/src/api/routes/users/@me/disable.ts +++ b/src/api/routes/users/@me/disable.ts
@@ -45,10 +45,7 @@ router.post( if (user.data.hash) { // guest accounts can delete accounts without password - correctpass = await bcrypt.compare( - req.body.password, - user.data.hash, - ); //Not sure if user typed right password :/ + correctpass = await bcrypt.compare(req.body.password, user.data.hash); //Not sure if user typed right password :/ } if (correctpass) { diff --git a/src/api/routes/users/@me/notes.ts b/src/api/routes/users/@me/notes.ts
index e468c36f..4969fa75 100644 --- a/src/api/routes/users/@me/notes.ts +++ b/src/api/routes/users/@me/notes.ts
@@ -79,10 +79,7 @@ router.put( }, }) ) { - Note.update( - { owner: { id: owner.id }, target: { id: target.id } }, - { owner, target, content: note }, - ); + Note.update({ owner: { id: owner.id }, target: { id: target.id } }, { owner, target, content: note }); } else { Note.insert({ id: Snowflake.generate(),