1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-29 09:04:34 +02:00

deps(backend): update typeorm to v1 (#17476)

* deps(backend): update typeorm to v1

* fix

* fix

* attempt to fix test (to be reverted))

* Revert "attempt to fix test (to be reverted))"

This reverts commit 8adf2a1239.

* attempt to fix test

* Revert "attempt to fix test"

This reverts commit 4cf0f5ec9e.

* attempt to fix test

* fix

* fix
This commit is contained in:
かっこかり
2026-05-22 14:27:34 +09:00
committed by GitHub
parent e1b580cfd0
commit 43534d6213
29 changed files with 192 additions and 145 deletions

View File

@@ -31,7 +31,10 @@ export class PostScheduledNoteProcessorService {
@bindThis
public async process(job: Bull.Job<PostScheduledNoteJobData>): Promise<void> {
const draft = await this.noteDraftsRepository.findOne({ where: { id: job.data.noteDraftId }, relations: ['user'] });
const draft = await this.noteDraftsRepository.findOne({
where: { id: job.data.noteDraftId },
relations: { user: true },
});
if (draft == null || draft.user == null || draft.scheduledAt == null || !draft.isActuallyScheduled) {
return;
}