Remove redundant code from db.ts

This commit is contained in:
Brandon Presley 2022-07-18 14:10:32 +12:00
parent a7d84c4dbd
commit d591d2e453
1 changed files with 0 additions and 8 deletions

8
db.ts
View File

@ -21,11 +21,3 @@ export const createPlans = `
workouts TEXT NOT NULL
);
`;
const selectProgress = `
SELECT count(*) as count from sets
WHERE created LIKE ?
AND name = ?
`;
export const getProgress = ({created, name}: {created: string; name: string}) =>
getDb().then(db => db.executeSql(selectProgress, [`%${created}%`, name]));