Update hybrid-all-timeline.ts

This commit is contained in:
まっちゃてぃー 2023-09-03 20:08:34 +09:00 committed by GitHub
parent 2f37f89f5a
commit 3e958d5bd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private idService: IdService,
) {
super(meta, paramDef, async (ps, me) => {
if (!me?.isRoot) throw new Error('access denied');
if (!me?.isAdmin) throw new Error('access denied');
//#region Construct query
const followingQuery = this.followingsRepository.createQueryBuilder('following')