Skip to content

Commit

Permalink
Merge pull request #19 from ww-daniel-mora/fix/role-no-db
Browse files Browse the repository at this point in the history
fix(role): allow role without db
  • Loading branch information
berenddeboer authored May 28, 2024
2 parents 704c38d + 7fa7102 commit b4eb65b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/role.custom-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export interface RoleProps {
export class Role extends CustomResource {
constructor(scope: Construct, id: string, props: RoleProps) {
if (
(props.database && props.databaseName) ||
(!props.database && !props.databaseName)
(props.database && props.databaseName)
)
throw "Specify either database or databaseName"
super(scope, id, {
Expand Down

0 comments on commit b4eb65b

Please sign in to comment.