Fix merge conflicts

This commit is contained in:
Adria Navarro 2025-03-21 09:20:26 +01:00
parent 0d383e84e7
commit df3e8fa430
1 changed files with 3 additions and 3 deletions

View File

@ -30,13 +30,13 @@ function toFetchOAuth2ConfigsResponse(
export async function fetch(ctx: Ctx<void, FetchOAuth2ConfigsResponse>) {
const configs = await sdk.oauth2.fetch()
const timestamps = await sdk.oauth2.getLastUsages(configs.map(c => c.id))
const timestamps = await sdk.oauth2.getLastUsages(configs.map(c => c._id))
const response: FetchOAuth2ConfigsResponse = {
configs: (configs || []).map(c => ({
...toFetchOAuth2ConfigsResponse(c),
lastUsage: timestamps[c.id]
? new Date(timestamps[c.id]).toISOString()
lastUsage: timestamps[c._id]
? new Date(timestamps[c._id]).toISOString()
: undefined,
})),
}