refactor: run formatter

This commit is contained in:
Elias Schneider
2023-08-17 14:47:58 +02:00
parent 7b34cb14cb
commit f02e2979c4
48 changed files with 1018 additions and 573 deletions

View File

@@ -19,7 +19,7 @@ const signInTotp = async (
emailOrUsername: string,
password: string,
totp: string,
loginToken: string
loginToken: string,
) => {
const emailOrUsernameBody = emailOrUsername.includes("@")
? { email: emailOrUsername }

View File

@@ -18,7 +18,7 @@ const get = (key: string, configVariables: Config[]): any => {
if (!configVariables) return null;
const configVariable = configVariables.filter(
(variable) => variable.key == key
(variable) => variable.key == key,
)[0];
if (!configVariable) throw new Error(`Config variable ${key} not found`);
@@ -42,7 +42,7 @@ const sendTestEmail = async (email: string) => {
const isNewReleaseAvailable = async () => {
const response = (
await axios.get(
"https://api.github.com/repos/stonith404/pingvin-share/releases/latest"
"https://api.github.com/repos/stonith404/pingvin-share/releases/latest",
)
).data;
return response.tag_name.replace("v", "") != process.env.VERSION;

View File

@@ -71,7 +71,7 @@ const uploadFile = async (
name: string;
},
chunkIndex: number,
totalChunks: number
totalChunks: number,
): Promise<FileUploadResponse> => {
const data = readerEvent.target!.result;
@@ -92,7 +92,7 @@ const createReverseShare = async (
shareExpiration: string,
maxShareSize: number,
maxUseCount: number,
sendEmailNotification: boolean
sendEmailNotification: boolean,
) => {
return (
await api.post("reverseShares", {