Skip to content

Commit 48a412c

Browse files
committed
Merge branch 'main' into feat/bluesky-finisher
2 parents 1c8cc48 + 3312261 commit 48a412c

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

apps/frontend/src/components/launches/helpers/use.values.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { useEffect, useMemo } from 'react';
22
import { useForm, useFormContext } from 'react-hook-form';
33
import { classValidatorResolver } from '@hookform/resolvers/class-validator';
4+
5+
class Empty {}
6+
47
const finalInformation = {} as {
58
[key: string]: {
69
posts: Array<{
@@ -42,15 +45,14 @@ export const useValues = (
4245
) => Promise<string | true>,
4346
maximumCharacters?: number
4447
) => {
45-
const resolver = useMemo(() => {
46-
return dto ? classValidatorResolver(dto) : undefined;
47-
}, [integration]);
48+
4849
const form = useForm({
49-
...(resolver ? resolver : {}),
50+
resolver: classValidatorResolver(dto || Empty),
5051
values: initialValues,
5152
mode: 'onChange',
5253
criteriaMode: 'all',
5354
});
55+
5456
const getValues = useMemo(() => {
5557
return () => ({
5658
...form.getValues(),

apps/workers/src/app/stars.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class StarsController {
1313
) {}
1414
@EventPattern('check_stars', Transport.REDIS)
1515
async checkStars(data: { login: string }) {
16-
// no to be effected by the limit, we scrape the HTML instead of using the API
16+
// not to be affected by the limit, we scrape the HTML instead of using the API
1717
const loadedHtml = await (
1818
await fetch(`https://github.com/${data.login}`)
1919
).text();

build.plugins.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { readdirSync, statSync, writeFileSync } = require('fs');
1+
const { readdirSync, statSync, writeFileSync, existsSync } = require('fs');
22
const { join } = require('path');
33

44
function isNonEmptyFolder(folderPath) {
@@ -18,6 +18,10 @@ function isNonEmptyFolder(folderPath) {
1818
// Function to get all non-empty folders
1919
function getNonEmptyFolders(rootFolder) {
2020
const result = [];
21+
if (!existsSync(rootFolder)) {
22+
return result;
23+
}
24+
2125
const items = readdirSync(rootFolder);
2226

2327
items.forEach((item) => {

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.39.1
1+
v1.46.0

0 commit comments

Comments
 (0)