2nd attempt

This commit is contained in:
jude
2026-05-25 20:29:14 +01:00
parent b1fda50d4c
commit d77ff6b216
6 changed files with 17 additions and 8 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ type Template = {
embed_fields: EmbedField[] | null;
};
const USER_INFO_STALE_TIME = 120_000;
const USER_INFO_STALE_TIME = 86_400_000;
const GUILD_INFO_STALE_TIME = 300_000;
const OTHER_STALE_TIME = 120_000;
@@ -236,7 +236,7 @@ export const fetchGuildTodos = (guild: string) => ({
});
export const patchGuildTodo = (guild: string) => ({
mutationFn: ({ id, todo }) => axios.patch(`/dashboard/api/guild/${guild}/todos/${id}`, todo),
mutationFn: ({id, todo}) => axios.patch(`/dashboard/api/guild/${guild}/todos/${id}`, todo),
});
export const postGuildTodo = (guild: string) => ({
@@ -52,7 +52,6 @@ const InnerApp = () => {
const queryClient = new QueryClient();
export function App() {
return (
<QueryClientProvider client={queryClient}>
<ColorSchemeProvider>
@@ -14,6 +14,9 @@ export const Welcome = () => (
<p>
<strong>Please report bugs!</strong> I can't fix issues if I am unaware of them.
</p>
<p>
Client version: {import.meta.env.VITE_VERSION}
</p>
</div>
</section>
);