forked from mirrors/misskey
add note
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user