-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implements rne and insee source lastModified dates (#1398)
* feat: implements rne and insee source lastModified dates * feat: add sources * feat: implements rne and insee source lastModified dates * feat: add sources * refactor: data sources last modified - only for rne and idcc * chore: re merge with main
- Loading branch information
Showing
18 changed files
with
216 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import routes from '#clients/routes'; | ||
import { DataStore } from '../store'; | ||
|
||
const store = new DataStore<string>( | ||
routes.rechercheEntreprise.lastModified, | ||
'recherche-entreprise-last-modified', | ||
(response) => response | ||
); | ||
|
||
/** | ||
* Returns the dates of last modification of the data sources used in recherche entreprise | ||
* | ||
* For instance : | ||
* IDCC was published on 29/11, we indexed it on 12/12, then last modified date is 29/11 | ||
*/ | ||
export const clientRechercheEntrepriseLastModified = async () => { | ||
return { | ||
rne: (await store.get('rne')) ?? null, | ||
idcc: (await store.get('convention_collective')) ?? null, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.