This commit is contained in:
ThatOneCalculator 2022-07-28 22:57:54 -07:00
parent 962a5213f7
commit 9aeffce5df

View file

@ -1,6 +1,6 @@
import { Brackets } from 'typeorm';
import { fetchMeta } from '@/misc/fetch-meta.js';
import { Meta, Notes } from '@/models/index.js';
import { Metas, Notes } from '@/models/index.js';
import { activeUsersChart } from '@/services/chart/index.js';
import define from '../../define.js';
import { ApiError } from '../../error.js';
@ -64,7 +64,7 @@ export default define(meta, paramDef, async (ps, user) => {
}
//#region Construct query
const recommendedInstancesQuery = Meta.createQueryBuilder('meta')
const recommendedInstancesQuery = Metas.createQueryBuilder('meta')
.select('meta.recommendedInstances');
const query = makePaginationQuery(Notes.createQueryBuilder('note'),