Skip to content

Commit

Permalink
Make gitService optional in PlaybooksRepository
Browse files Browse the repository at this point in the history
This change modifies the PlaybooksRepository model to make the gitService field optional. The updates include changing the type definition and schema requirements to accommodate use cases where gitService is not provided.
  • Loading branch information
SquirrelDevelopper committed Nov 15, 2024
1 parent 4debc65 commit 3d5866a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/data/database/model/PlaybooksRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default interface PlaybooksRepository {
directoryExclusionList?: string[];
onError?: boolean;
onErrorMessage?: string;
gitService: SsmGit.Services;
gitService?: SsmGit.Services;
createdAt?: Date;
updatedAt?: Date;
}
Expand Down Expand Up @@ -102,7 +102,7 @@ const schema = new Schema<PlaybooksRepository>(
},
gitService: {
type: Schema.Types.String,
required: true,
required: false,
},
},
{
Expand Down

0 comments on commit 3d5866a

Please sign in to comment.