Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cbolles committed Sep 12, 2024
1 parent 36ca87b commit 48380b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/services/damplab-services.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ export class DampLabServices {

async delete(service: DampLabService): Promise<void> {
// Remove all allowed connections first
await this.dampLabServiceModel.updateMany({}, {
await this.dampLabServiceModel.updateMany(
{},
{
$pull: { allowedConnections: service._id }
});
}
);

Check warning on line 40 in src/services/damplab-services.services.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

await this.dampLabServiceModel.deleteOne({ _id: service._id });
}
Expand Down

0 comments on commit 48380b8

Please sign in to comment.