Skip to content

Commit

Permalink
query/blobs: delete comment ref copy/pasted code (#1159)
Browse files Browse the repository at this point in the history
The comment suggested modifying a migration which has since been released.  If there is a problem with the migration, it should be fixed with a subsequent migration.
  • Loading branch information
alxndrsn committed Jun 21, 2024
1 parent 7afef66 commit 56c2ca9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/model/query/blobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ const getById = (blobId) => ({ maybeOne }) =>
maybeOne(sql`select * from blobs where id=${blobId}`)
.then(map(construct(Blob)));

// NOTE: copypasta alert!
// The migration 20220121-02-purge-deleted-forms.js also contains a version
// of the following purge blob query, and if it changes here, it should likely
// change there, too.
const purgeUnattached = () => ({ all }) =>
all(sql`
delete from blobs
Expand Down

0 comments on commit 56c2ca9

Please sign in to comment.