feat(cli): ♻️ Begin new CLI rewrite with oclif

This commit is contained in:
Jesse Wierzbinski 2024-05-07 07:41:02 +00:00
parent 7b05a34cce
commit 06c30b8af2
No known key found for this signature in database
21 changed files with 569 additions and 11 deletions

View file

@ -144,6 +144,12 @@ export class User {
)[0].count;
}
async delete() {
return (
await db.delete(Users).where(eq(Users.id, this.id)).returning()
)[0];
}
async pin(note: Note) {
return (
await db