Skip to content

Commit

Permalink
Fix last version source
Browse files Browse the repository at this point in the history
  • Loading branch information
RomaricMourgues committed Feb 2, 2021
1 parent fec72d5 commit a9619fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions twake/backend/core/src/Twake/Core/Controller/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ function getVersion(Request $request)
"ready" => $ready,
"auth_mode" => array_keys($auth),
"auth" => $auth,
"version" => [
"current" => "2020.Q4.135",
"minimal" => [
"web" => "2020.Q4.135",
"mobile" => "2020.Q4.135",
]
],
"elastic_search_available" => !!$this->container->getParameter("es.host"),
"help_link" => "https://go.crisp.chat/chat/embed/?website_id=9ef1628b-1730-4044-b779-72ca48893161"
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const NewVersionComponent: FC = ({ children }) => {
lastScrape = new Date().getTime();

const config = (await Api.get('core/version')) as ConfigurationResource;
const currentVersion: string = Environment?.version_detail;
const currentVersion: string = (window as any).version_detail;
const newestVersion: string = config.data.version?.current || '';
const minimalWebVersion: string = config.data.version?.minimal?.web || '';

Expand Down

0 comments on commit a9619fb

Please sign in to comment.