mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Fix linter errors
This commit is contained in:
10 files changed
+79
-72
No files matched your search
@@ -260,7 +260,14 @@ async function fetchNostrPatches(
|
||||
|
||||
try {
|
||||
// Build query filter based on whether user is repo owner or contributor
|
||||
const filter: any = {
|
||||
interface PatchFilter {
|
||||
kinds: number[];
|
||||
'#a': string[];
|
||||
limit: number;
|
||||
authors?: string[];
|
||||
}
|
||||
|
||||
const filter: PatchFilter = {
|
||||
kinds: [1617],
|
||||
'#a': [`30617:${info.owner}:${info.repo}`],
|
||||
limit: 50,
|
||||
@@ -286,12 +293,13 @@ async function fetchNostrPatches(
|
||||
let statusEvents: NostrEvent[] = [];
|
||||
|
||||
if (patchIds.length > 0) {
|
||||
statusEvents = await nostr.query([
|
||||
const events = await nostr.query([
|
||||
{
|
||||
kinds: [1630, 1631, 1632, 1633], // Open, Applied/Merged, Closed, Draft
|
||||
'#e': patchIds,
|
||||
}
|
||||
], { signal });
|
||||
statusEvents = events as NostrEvent[];
|
||||
console.log(`Found ${statusEvents.length} status events`);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user