1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

remove unused method (0 references)

This commit is contained in:
Thomas Heartman 2025-07-09 15:47:33 +02:00
parent 698d5287c2
commit 6583c242fb

View File

@ -301,20 +301,6 @@ export default class EnvironmentStore implements IEnvironmentStore {
return present; return present;
} }
async getByName(name: string): Promise<IEnvironment> {
const stopTimer = this.timer('getByName');
const row = await this.db<IEnvironmentsTable>(TABLE)
.where({ name })
.first();
stopTimer();
if (!row) {
throw new NotFoundError(
`Could not find environment with name ${name}`,
);
}
return mapRow(row);
}
async updateProperty( async updateProperty(
id: string, id: string,
field: string, field: string,