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 commit8adf2a1239. * attempt to fix test * Revert "attempt to fix test" This reverts commit4cf0f5ec9e. * attempt to fix test * fix * fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user