mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-29 21:07:40 +01:00
fix: address greptile feedback for blocker dependencies
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
467f3a749a
commit
4c01a45d2a
5 files changed
+14
-2
No files matched your search
@@ -819,6 +819,13 @@ export function issueService(db: Db) {
|
||||
}
|
||||
|
||||
if (deduped.length > 0) {
|
||||
const lockedIssueIds = [issueId, ...deduped].sort();
|
||||
await dbOrTx.execute(
|
||||
sql`SELECT ${issues.id} FROM ${issues}
|
||||
WHERE ${and(eq(issues.companyId, companyId), inArray(issues.id, lockedIssueIds))}
|
||||
ORDER BY ${issues.id}
|
||||
FOR UPDATE`,
|
||||
);
|
||||
const relatedIssues = await dbOrTx
|
||||
.select({ id: issues.id })
|
||||
.from(issues)
|
||||
|
||||
Reference in new issue
Block a user