1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore: impl empty results for fake project read model (#7912)

Implements empty responses for the fake project read model. Instead of
throwing a not implemented error, we'll return empty results.

This makes some of the tests in enterprise pass.
This commit is contained in:
Thomas Heartman 2024-08-19 10:53:05 +02:00 committed by GitHub
parent 35196b53c1
commit 7008070fc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,9 +6,9 @@ import type {
export class FakeProjectReadModel implements IProjectReadModel {
getProjectsForAdminUi(): Promise<ProjectForUi[]> {
throw new Error('Method not implemented.');
return Promise.resolve([]);
}
getProjectsForInsights(): Promise<ProjectForInsights[]> {
throw new Error('Method not implemented.');
return Promise.resolve([]);
}
}