Skip to content

Commit 7ce814b

Browse files
committed
cache organizations for 24 hrs
1 parent d959e21 commit 7ce814b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/libs/integrations/src/integrations/github/processStream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ async function getOrganizationData(ctx: IProcessStreamContext, company: string):
144144
})
145145

146146
if (fromAPI) {
147-
await cache.set(prefix(company), JSON.stringify(fromAPI), 60 * 60)
147+
await cache.set(prefix(company), JSON.stringify(fromAPI), 24 * 60 * 60)
148148
return fromAPI
149149
}
150150

151-
await cache.set(prefix(company), 'null', 60 * 60)
151+
await cache.set(prefix(company), 'null', 24 * 60 * 60)
152152
return null
153153
}
154154

0 commit comments

Comments
 (0)