Skip to content

Commit

Permalink
style(shared): run updated prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
tsa96 committed Aug 21, 2024
1 parent 112e743 commit c02ed37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/app/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ConfigFactory = (): ConfigInterface => {
maxCreditsExceptTesters: MAX_CREDITS_EXCEPT_TESTERS,
preSignedUrlExpTime: PRE_SIGNED_URL_EXPIRE_TIME
},
logLevel: (process.env['LOG_LEVEL'] ?? isTest
logLevel: ((process.env['LOG_LEVEL'] ?? isTest)
? 'warn'
: 'info') as pino.LevelWithSilent
};
Expand Down
2 changes: 1 addition & 1 deletion libs/test-utils/src/utils/db.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class DbUtil {
// Just creating the one leaderboard here, most maps will have more,
// but isn't needed or worth the test perf hit
leaderboards:
mmap?.leaderboards ?? noLeaderboards
(mmap?.leaderboards ?? noLeaderboards)
? undefined
: {
create: {
Expand Down
4 changes: 2 additions & 2 deletions libs/test-utils/src/utils/request.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class RequestUtil {
accept: 'application/json'
};
injectOptions.url =
(options.skipApiPrefix ?? false ? '/' : URL_PREFIX) + options.url;
((options.skipApiPrefix ?? false) ? '/' : URL_PREFIX) + options.url;

if (options.query) {
if (typeof options.query === 'string') {
Expand Down Expand Up @@ -146,7 +146,7 @@ export class RequestUtil {
Object.assign(injectOptions.headers, form.getHeaders());
injectOptions.payload = form;
} else {
injectOptions.payload = 'body' in options ? options.body ?? {} : {};
injectOptions.payload = 'body' in options ? (options.body ?? {}) : {};
}
}

Expand Down

0 comments on commit c02ed37

Please sign in to comment.