Remove redundant code from db.ts
This commit is contained in:
parent
a7d84c4dbd
commit
d591d2e453
8
db.ts
8
db.ts
|
@ -21,11 +21,3 @@ export const createPlans = `
|
||||||
workouts TEXT NOT NULL
|
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]));
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user