diff --git a/src/lib/features/project-environments/environment-store.ts b/src/lib/features/project-environments/environment-store.ts index 457fbd47df..e808463f90 100644 --- a/src/lib/features/project-environments/environment-store.ts +++ b/src/lib/features/project-environments/environment-store.ts @@ -301,20 +301,6 @@ export default class EnvironmentStore implements IEnvironmentStore { return present; } - async getByName(name: string): Promise { - const stopTimer = this.timer('getByName'); - const row = await this.db(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,