Skip to content

Commit

Permalink
Fix LatestDocs avatars (#574)
Browse files Browse the repository at this point in the history
* Update latest-docs.ts

* Update latest-docs.ts

* Update latest-docs.ts
  • Loading branch information
jeffdaley authored Jan 30, 2024
1 parent 1150a28 commit 907a178
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/app/services/latest-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import ConfigService from "hermes/services/config";
import { HermesDocument } from "hermes/types/document";
import { assert } from "@ember/debug";
import AlgoliaService from "./algolia";
import StoreService from "hermes/services/store";

export default class LatestDocsService extends Service {
@service("config") declare configSvc: ConfigService;
@service declare algolia: AlgoliaService;
@service declare store: StoreService;

/**
* The index of the most recent documents.
Expand Down Expand Up @@ -42,6 +44,10 @@ export default class LatestDocsService extends Service {
assert("response must exist", response);

this.index = response.hits as HermesDocument[];

// Load the owner information
await this.store.maybeFetchPeople.perform(this.index);

this.nbPages = response.nbPages;
});
}
Expand Down

0 comments on commit 907a178

Please sign in to comment.