Skip to content

Commit f6e2f23

Browse files
authored
fix: lints (#211)
1 parent 47edd53 commit f6e2f23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/utils/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type StorageConfigType = {
1212
globalS3Endpoint?: string
1313
isMultitenant: boolean
1414
jwtSecret: string
15-
jwtAlgorithm: string,
15+
jwtAlgorithm: string
1616
multitenantDatabaseUrl?: string
1717
postgrestURL: string
1818
postgrestURLSuffix?: string
@@ -83,7 +83,7 @@ export function getConfig(): StorageConfigType {
8383
getOptionalConfigFromEnv('PROJECT_REF') ||
8484
getOptionalIfMultitenantConfigFromEnv('TENANT_ID') ||
8585
'',
86-
urlLengthLimit: Number(getOptionalConfigFromEnv('URL_LENGTH_LIMIT')) || 7_500,
86+
urlLengthLimit: Number(getOptionalConfigFromEnv('URL_LENGTH_LIMIT')) || 7_500,
8787
xForwardedHostRegExp: getOptionalConfigFromEnv('X_FORWARDED_HOST_REGEXP'),
8888
logLevel: getOptionalConfigFromEnv('LOG_LEVEL') || 'trace',
8989
logflareEnabled: getOptionalConfigFromEnv('LOGFLARE_ENABLED') === 'true',

src/utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function verifyJWT(
3434
secret: string
3535
): Promise<string | jwt.JwtPayload | undefined> {
3636
return new Promise((resolve, reject) => {
37-
jwt.verify(token, secret, { algorithms: [jwtAlgorithm as jwt.Algorithm]}, (err, decoded) => {
37+
jwt.verify(token, secret, { algorithms: [jwtAlgorithm as jwt.Algorithm] }, (err, decoded) => {
3838
if (err) return reject(err)
3939
resolve(decoded)
4040
})

0 commit comments

Comments
 (0)