Skip to content

Commit

Permalink
Merge pull request #350 from swisstopo/fix/assets-348-fehler-beim-spe…
Browse files Browse the repository at this point in the history
…ichern-oder-erstellen

Fix 348: Remove deletions of assetKindItems and assetFormatItem
  • Loading branch information
TIL-EBP authored Nov 19, 2024
2 parents 65d33fb + de4bf44 commit 8640d82
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions apps/server-asset-sg/src/features/asset-edit/asset-edit.repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,18 +284,6 @@ export class AssetEditRepo implements Repo<AssetEditDetail, number, AssetEditDat
Asset: { none: {} },
},
});

await this.prismaService.assetFormatItem.deleteMany({
where: {
assets: { none: {} },
},
});

await this.prismaService.assetKindItem.deleteMany({
where: {
assets: { none: {} },
},
});
});
return true;
} catch (e) {
Expand Down

0 comments on commit 8640d82

Please sign in to comment.