Update hybrid-all-timeline.ts
This commit is contained in:
parent
2f37f89f5a
commit
3e958d5bd4
|
@ -72,7 +72,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
private idService: IdService,
|
private idService: IdService,
|
||||||
) {
|
) {
|
||||||
super(meta, paramDef, async (ps, me) => {
|
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
|
//#region Construct query
|
||||||
const followingQuery = this.followingsRepository.createQueryBuilder('following')
|
const followingQuery = this.followingsRepository.createQueryBuilder('following')
|
||||||
|
|
Loading…
Reference in a new issue