added prettier settings

This commit is contained in:
daniel31x13
2023-12-29 12:21:22 -05:00
parent e4fc8948fa
commit ee6dcdcc5b
21 changed files with 480 additions and 291 deletions
+2 -2
View File
@@ -62,8 +62,8 @@ export default async function postLink(
link.description && link.description !== ""
? link.description
: link.url
? await getTitle(link.url)
: undefined;
? await getTitle(link.url)
: undefined;
const validatedUrl = link.url ? await validateUrlSize(link.url) : undefined;
+4 -1
View File
@@ -40,7 +40,10 @@ async function emptyS3Directory(bucket: string, dir: string) {
export default async function removeFolder({ filePath }: { filePath: string }) {
if (s3Client) {
try {
await emptyS3Directory(process.env.SPACES_BUCKET_NAME as string, filePath);
await emptyS3Directory(
process.env.SPACES_BUCKET_NAME as string,
filePath
);
} catch (err) {
console.log("Error", err);
}
+2 -1
View File
@@ -42,7 +42,8 @@ export default async function verifyUser({
return null;
}
if (!user.username && !ssoUser) { // SSO users don't need a username
if (!user.username && !ssoUser) {
// SSO users don't need a username
res.status(401).json({
response: "Username not found.",
});