chore: Do not override query method for findOne query errors
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
3e4768c106
commit
79b12ac9e6
@@ -11,7 +11,7 @@ const resetConnectionResolver = async (params: Params, req: RequestWithCurrentUs
|
||||
let connection = await Connection.query().findOne({
|
||||
user_id: req.currentUser.id,
|
||||
id: params.id
|
||||
})
|
||||
}).throwIfNotFound();
|
||||
|
||||
connection = await connection.$query().patchAndFetch({
|
||||
data: { screenName: connection.data.screenName }
|
||||
|
Reference in New Issue
Block a user