participating=true

This commit is contained in:
Half-Shot 2020-02-20 01:33:58 +00:00
parent b95392aec9
commit dc7973bbb2

View File

@ -76,8 +76,8 @@ export class UserNotificationWatcher {
}
log.info(`Getting notifications for ${userId} ${stream.lastReadTs}`);
try {
const since = stream.lastReadTs !== 0 ? `?since=${new Date(stream.lastReadTs).toISOString()}`: "";
const response = await stream.octoKit.request(`/notifications${since}`);
const since = stream.lastReadTs !== 0 ? `&since=${new Date(stream.lastReadTs).toISOString()}`: "";
const response = await stream.octoKit.request(`/notifications?participating=true${since}`);
stream.lastReadTs = Date.now();
const events: UserNotification[] = await Promise.all(response.data.map(async (event: UserNotification) => {
if (event.subject.url) {