add note
This commit is contained in:
parent
6d2e582eaf
commit
04e2d44d28
|
|
@ -324,6 +324,7 @@ export class NoteDraftService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async clearSchedule(draftId: MiNoteDraft['id']): Promise<void> {
|
public async clearSchedule(draftId: MiNoteDraft['id']): Promise<void> {
|
||||||
|
// TODO: 線形探索なのをどうにかする
|
||||||
const jobs = await this.queueService.postScheduledNoteQueue.getJobs(['delayed', 'waiting', 'active']);
|
const jobs = await this.queueService.postScheduledNoteQueue.getJobs(['delayed', 'waiting', 'active']);
|
||||||
for (const job of jobs) {
|
for (const job of jobs) {
|
||||||
if (job.data.noteDraftId === draftId) {
|
if (job.data.noteDraftId === draftId) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue