mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
remove unused method (0 references)
This commit is contained in:
parent
698d5287c2
commit
6583c242fb
@ -301,20 +301,6 @@ export default class EnvironmentStore implements IEnvironmentStore {
|
||||
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(
|
||||
id: string,
|
||||
field: string,
|
||||
|
Loading…
Reference in New Issue
Block a user