From 725a21b02721f92ed0420ed3f807ee921de77992 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 1 May 2024 15:11:22 +0200 Subject: [feature] Page through accounts as moderator (#2881) * [feature] Page through accounts as moderator * aaaaa * use COLLATE "C" for Postgres to ensure same ordering as SQLite * fix typo, test paging up * don't show moderation / info for our instance acct --- web/source/settings/lib/query/gts-api.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web/source/settings/lib/query/gts-api.ts') diff --git a/web/source/settings/lib/query/gts-api.ts b/web/source/settings/lib/query/gts-api.ts index a07f5ff1e..6e5eafeab 100644 --- a/web/source/settings/lib/query/gts-api.ts +++ b/web/source/settings/lib/query/gts-api.ts @@ -24,7 +24,7 @@ import type { FetchBaseQueryError, } from '@reduxjs/toolkit/query/react'; import { serialize as serializeForm } from "object-to-formdata"; - +import type { FetchBaseQueryMeta } from "@reduxjs/toolkit/dist/query/fetchBaseQuery"; import type { RootState } from '../../redux/store'; import { InstanceV1 } from '../types/instance'; @@ -65,7 +65,9 @@ export interface GTSFetchArgs extends FetchArgs { const gtsBaseQuery: BaseQueryFn< string | GTSFetchArgs, any, - FetchBaseQueryError + FetchBaseQueryError, + {}, + FetchBaseQueryMeta > = async (args, api, extraOptions) => { // Retrieve state at the moment // this function was called. -- cgit v1.2.3