Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
3312261b28
|
|
@ -13,7 +13,7 @@ export class StarsController {
|
|||
) {}
|
||||
@EventPattern('check_stars', Transport.REDIS)
|
||||
async checkStars(data: { login: string }) {
|
||||
// no to be effected by the limit, we scrape the HTML instead of using the API
|
||||
// not to be affected by the limit, we scrape the HTML instead of using the API
|
||||
const loadedHtml = await (
|
||||
await fetch(`https://github.com/${data.login}`)
|
||||
).text();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const { readdirSync, statSync, writeFileSync } = require('fs');
|
||||
const { readdirSync, statSync, writeFileSync, existsSync } = require('fs');
|
||||
const { join } = require('path');
|
||||
|
||||
function isNonEmptyFolder(folderPath) {
|
||||
|
|
@ -18,6 +18,10 @@ function isNonEmptyFolder(folderPath) {
|
|||
// Function to get all non-empty folders
|
||||
function getNonEmptyFolders(rootFolder) {
|
||||
const result = [];
|
||||
if (!existsSync(rootFolder)) {
|
||||
return result;
|
||||
}
|
||||
|
||||
const items = readdirSync(rootFolder);
|
||||
|
||||
items.forEach((item) => {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
v1.39.1
|
||||
v1.46.0
|
||||
Loading…
Reference in New Issue