style: fix prettier formatting in db.ts
This commit is contained in:
11
src/db.ts
11
src/db.ts
@@ -95,9 +95,7 @@ function createSchema(database: Database.Database): void {
|
|||||||
|
|
||||||
// Add script column if it doesn't exist (migration for existing DBs)
|
// Add script column if it doesn't exist (migration for existing DBs)
|
||||||
try {
|
try {
|
||||||
database.exec(
|
database.exec(`ALTER TABLE scheduled_tasks ADD COLUMN script TEXT`);
|
||||||
`ALTER TABLE scheduled_tasks ADD COLUMN script TEXT`,
|
|
||||||
);
|
|
||||||
} catch {
|
} catch {
|
||||||
/* column already exists */
|
/* column already exists */
|
||||||
}
|
}
|
||||||
@@ -420,7 +418,12 @@ export function updateTask(
|
|||||||
updates: Partial<
|
updates: Partial<
|
||||||
Pick<
|
Pick<
|
||||||
ScheduledTask,
|
ScheduledTask,
|
||||||
'prompt' | 'script' | 'schedule_type' | 'schedule_value' | 'next_run' | 'status'
|
| 'prompt'
|
||||||
|
| 'script'
|
||||||
|
| 'schedule_type'
|
||||||
|
| 'schedule_value'
|
||||||
|
| 'next_run'
|
||||||
|
| 'status'
|
||||||
>
|
>
|
||||||
>,
|
>,
|
||||||
): void {
|
): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user