refactor: migrate to typeorm 3.0 (#8443)
* wip * wip * wip * Update following.ts * wip * wip * wip * Update resolve-user.ts * maxQueryExecutionTime * wip * wip
This commit is contained in:
		| @@ -59,7 +59,7 @@ export default define(meta, paramDef, async (ps, user) => { | ||||
| 	}); | ||||
|  | ||||
| 	// Check if already muting | ||||
| 	const exist = await Mutings.findOne({ | ||||
| 	const exist = await Mutings.findOneBy({ | ||||
| 		muterId: muter.id, | ||||
| 		muteeId: mutee.id, | ||||
| 	}); | ||||
|   | ||||
| @@ -56,7 +56,7 @@ export default define(meta, paramDef, async (ps, user) => { | ||||
| 	}); | ||||
|  | ||||
| 	// Check not muting | ||||
| 	const exist = await Mutings.findOne({ | ||||
| 	const exist = await Mutings.findOneBy({ | ||||
| 		muterId: muter.id, | ||||
| 		muteeId: mutee.id, | ||||
| 	}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo