Skip to content

Commit

Permalink
Update: migrate purge cache
Browse files Browse the repository at this point in the history
  • Loading branch information
juzser committed May 8, 2023
1 parent 12f98ff commit 91690cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/classes/ExecuteBlockAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { openListModal } from '../commands/remind/list';
import { IJob, JobStatus, JobTargetType } from '../interfaces/IJob';
import { reminderCreate } from '../modals/reminderCreate';
import { reminderList } from '../modals/reminderList';
import { getReminders } from '../services/reminder';

export class ExecuteBlockAction {
constructor(
Expand Down
3 changes: 3 additions & 0 deletions src/commands/remind/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ export async function MigrateCommand({ app, context, read, persis, modify }: {
persis,
data: newJobData,
});

// purge cache
app.jobsCache.purge(job.user);
}
}

Expand Down

0 comments on commit 91690cd

Please sign in to comment.