mirror of
https://github.com/ow-mods/ow-mod-db.git
synced 2025-12-11 20:15:24 +01:00
cleanup
This commit is contained in:
parent
ac67d44fb4
commit
82056e9c68
@ -11,20 +11,6 @@ export async function fetchMods(modsJson: string, gitHubToken: string) {
|
||||
const modInfos: ModInfo[] = JSON.parse(modsJson);
|
||||
const octokit = getOctokit(gitHubToken);
|
||||
|
||||
const previousDatabaseResponse: any = (
|
||||
await octokit.rest.repos.getContent({
|
||||
owner: "Raicuparta",
|
||||
repo: "ow-mod-db",
|
||||
path: "database.json",
|
||||
ref: "master",
|
||||
mediaType: {
|
||||
format: "raw",
|
||||
},
|
||||
})
|
||||
).data;
|
||||
|
||||
const previousDatabase: Mod[] = JSON.parse(previousDatabaseResponse);
|
||||
|
||||
const managerReleases = await octokit.paginate(
|
||||
octokit.rest.repos.listReleases,
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user