Skip to content

Commit

Permalink
Format sources before release
Browse files Browse the repository at this point in the history
  • Loading branch information
daikoku-github-actions committed Jan 31, 2025
1 parent 6307c1f commit f5709e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions daikoku/app/domain/CommonServices.scala
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ object CommonServices {
)
)
} yield {
val count = paginateApis._1.count(api =>
api.isPublished || myTeams.exists(api.team == _.id))
val count = paginateApis._1
.count(api => api.isPublished || myTeams.exists(api.team == _.id))
val sortedApis: Seq[ApiWithAuthorizations] = uniqueApisWithVersion
.filter(api =>
api.isPublished || myTeams.exists(api.team == _.id)
Expand Down
3 changes: 2 additions & 1 deletion daikoku/app/jobs/ApiKeyStatsJob.scala
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ class ApiKeyStatsJob(otoroshiClient: OtoroshiClient, env: Env) {
.forTenant(tenant)
.save(apiKeyConsumption)
_ <- apiKeyConsumption.state match {
case ApiKeyConsumptionState.Completed if subscription.thirdPartySubscriptionInformations.isDefined =>
case ApiKeyConsumptionState.Completed
if subscription.thirdPartySubscriptionInformations.isDefined =>
env.dataStore.operationRepo
.forTenant(tenant)
.save(
Expand Down
2 changes: 1 addition & 1 deletion daikoku/javascript/src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export const getOtoroshiApiKeys = (tenantId: any, otoId: any) =>
export const deleteTeamApi = (teamId: string, id: string, next: string) =>
customFetch(`/api/teams/${teamId}/apis/${id}`, {
method: 'DELETE',
body: JSON.stringify({ next })
body: JSON.stringify({ next }),
});

export const saveTeamApiWithId = (
Expand Down

0 comments on commit f5709e9

Please sign in to comment.