Skip to content

Commit

Permalink
fix: build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
totakoko committed Dec 20, 2023
1 parent 84303d0 commit 3472978
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions knexfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ export default {
},
};

function addApplicationName(connectionString: string): string {
return `${connectionString}${
connectionString.includes('?') ? '&' : '?'
}application_name=FCU-API`;
function addApplicationName(
connectionString: string | undefined
): string | undefined {
return connectionString === undefined
? undefined
: `${connectionString}${
connectionString.includes('?') ? '&' : '?'
}application_name=FCU-API`;
}

0 comments on commit 3472978

Please sign in to comment.