Skip to content

Commit

Permalink
Remove unused feature toggles code in pg.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Zachary Licastro <[email protected]>
  • Loading branch information
CheesyLaZanya committed Oct 6, 2024
1 parent 2f2a21a commit 8f464ba
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions modules/odr_frontend/src/lib/server/pg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,25 +88,7 @@ export const PG_API = {
getAll: async (): Promise<IFeatureToggle[]> => {
const { rows } = await pgClient.query('SELECT * FROM feature_toggles');
return rows;
},
// getByName: async (feature_name: string): Promise<IFeatureToggle | null> => {
// const { rows } = await pgClient.query('SELECT * FROM feature_toggles WHERE feature_name = $1', [feature_name]);
// return rows[0] || null;
// },
// update: async (id: number, is_enabled: boolean): Promise<IFeatureToggle | null> => {
// const { rows } = await pgClient.query(
// 'UPDATE feature_toggles SET is_enabled = $1 WHERE id = $2 RETURNING *',
// [is_enabled, id]
// );
// return rows[0] || null;
// },
// create: async (feature_name: string, is_enabled: boolean, default_state: boolean): Promise<IFeatureToggle> => {
// const { rows } = await pgClient.query(
// 'INSERT INTO feature_toggles (feature_name, is_enabled, default_state) VALUES ($1, $2, $3) RETURNING *',
// [feature_name, is_enabled, default_state]
// );
// return rows[0];
// }
}
}
};

Expand Down

0 comments on commit 8f464ba

Please sign in to comment.