fixup: add missing curly braces

This is a fixup for commit b14f3e8cdc.
This commit is contained in:
Johann150 2023-04-15 20:27:42 +02:00
parent b14f3e8cdc
commit 9a085e9d42
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -30,7 +30,7 @@ export async function getNote(noteId: Note['id'], me: { id: User['id'] } | null)
* Get user for API processing
*/
export async function getUser(userId: User['id'], includeSuspended = false) {
const user = await Users.findOneBy(
const user = await Users.findOneBy({
id: userId,
isDeleted: false,
isSuspended: !includeSuspended,
@ -47,7 +47,7 @@ export async function getUser(userId: User['id'], includeSuspended = false) {
* Get remote user for API processing
*/
export async function getRemoteUser(userId: User['id'], includeSuspended = false) {
const user = await Users.findOneBy(
const user = await Users.findOneBy({
id: userId,
host: Not(IsNull()),
isDeleted: false,
@ -65,7 +65,7 @@ export async function getRemoteUser(userId: User['id'], includeSuspended = false
* Get local user for API processing
*/
export async function getLocalUser(userId: User['id'], includeSuspended = false) {
const user = await Users.findOneBy(
const user = await Users.findOneBy({
id: userId,
host: IsNull(),
isDeleted: false,