Files
twenty_crm/packages/twenty-website/src/github-sync/github-sync.ts
Ady Beraud 0a7f82333b Make Github stars dynamic and improve database init (#5000)
I extracted the init database logic into its own file. 
You can now run it with yarn database:init.
Added database entry for GitHub stars. 

Do you want me to remove the init route or is it used for something else
?

---------

Co-authored-by: Ady Beraud <a.beraud96@gmail.com>
Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2024-04-24 09:44:44 +02:00

9 lines
195 B
TypeScript

import { fetchAndSaveGithubData } from '@/github-sync/fetch-and-save-github-data';
export const githubSync = async () => {
await fetchAndSaveGithubData();
process.exit(0);
};
githubSync();