1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00

fix: return undefined from delta if no events (#9311)

Nameprefix can remove events from result, so we should send 304 in that
case.
This commit is contained in:
Jaanus Sellin 2025-02-14 12:28:43 +02:00 committed by GitHub
parent 0e208fd8eb
commit 4a72580b24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,6 +201,10 @@ export class ClientFeatureToggleDelta extends EventEmitter {
namePrefix,
);
if (events.length === 0) {
return undefined;
}
const response: ClientFeaturesDeltaSchema = {
events: events.map((event) => {
if (event.type === 'feature-removed') {