Change font

This commit is contained in:
2025-04-11 22:39:56 +03:00
parent 6aceb65369
commit 966f6e8dde
8 changed files with 5477 additions and 2001 deletions

View File

@@ -1,4 +1,4 @@
import { get, isEmpty } from "radash";
import { get, isEmpty, tryit } from "radash";
import { isAfter } from "@formkit/tempo";
import { eq } from "drizzle-orm";
import { URLSearchParams } from "url";
@@ -57,10 +57,12 @@ export const useStrava = async (userId: number) => {
.where(eq(tables.tokens.userId, userId));
}
return $fetch.create({
baseURL: "https://www.strava.com/api/v3/",
onRequest({ options }) {
options.headers.set("Authorization", `Bearer ${tokens?.accessToken}`);
},
});
return tryit(
$fetch.create({
baseURL: "https://www.strava.com/api/v3/",
onRequest({ options }) {
options.headers.set("Authorization", `Bearer ${tokens?.accessToken}`);
},
}),
);
};