Skip to content

Commit

Permalink
Remove TODO comment that cannot be done
Browse files Browse the repository at this point in the history
After finishing work on HPC-9121, ticket HPC-9637
was opened to track how we can set column `latestVersionId`
in `project` table to be `NOT NULL`. But, turns
out that will not be possible, so we need this check,
cannot remove it, as TODO desired.
  • Loading branch information
Pl217 committed Jul 9, 2024
1 parent 8a2a05f commit c32c459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/deletion/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const deleteProjectById = async (

// Cannot delete already published project
if (
project.latestVersionId !== null && // TODO: Remove once HPC-9121 is done and `latestVersionId` can no longer be `null`
project.latestVersionId !== null &&
project.currentPublishedVersionId === project.latestVersionId
) {
throw new PreconditionFailedError(
Expand Down

0 comments on commit c32c459

Please sign in to comment.