fix (backend): typo
This commit is contained in:
parent
ef0c3a0ae2
commit
b87351673c
2 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ import {
|
||||||
Polls,
|
Polls,
|
||||||
Channels,
|
Channels,
|
||||||
Notes,
|
Notes,
|
||||||
ScheduledNote,
|
ScheduledNotes,
|
||||||
} from "../index.js";
|
} from "../index.js";
|
||||||
import type { Packed } from "@/misc/schema.js";
|
import type { Packed } from "@/misc/schema.js";
|
||||||
import { countReactions, decodeReaction, nyaify } from "backend-rs";
|
import { countReactions, decodeReaction, nyaify } from "backend-rs";
|
||||||
|
@ -202,7 +202,7 @@ export const NoteRepository = db.getRepository(Note).extend({
|
||||||
let scheduledAt: string | undefined;
|
let scheduledAt: string | undefined;
|
||||||
if (note.visibility === "specified" && note.visibleUserIds.length === 0) {
|
if (note.visibility === "specified" && note.visibleUserIds.length === 0) {
|
||||||
scheduledAt = (
|
scheduledAt = (
|
||||||
await ScheduledNote.findOneBy({
|
await ScheduledNotes.findOneBy({
|
||||||
noteId: note.id,
|
noteId: note.id,
|
||||||
})
|
})
|
||||||
)?.scheduledAt?.toISOString();
|
)?.scheduledAt?.toISOString();
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {
|
||||||
Notes,
|
Notes,
|
||||||
Channels,
|
Channels,
|
||||||
Blockings,
|
Blockings,
|
||||||
ScheduledNote,
|
ScheduledNotes,
|
||||||
} from "@/models/index.js";
|
} from "@/models/index.js";
|
||||||
import type { DriveFile } from "@/models/entities/drive-file.js";
|
import type { DriveFile } from "@/models/entities/drive-file.js";
|
||||||
import type { Note } from "@/models/entities/note.js";
|
import type { Note } from "@/models/entities/note.js";
|
||||||
|
@ -346,7 +346,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||||
false,
|
false,
|
||||||
delay
|
delay
|
||||||
? async (note) => {
|
? async (note) => {
|
||||||
await ScheduledNote.insert({
|
await ScheduledNotes.insert({
|
||||||
id: genId(),
|
id: genId(),
|
||||||
noteId: note.id,
|
noteId: note.id,
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
|
|
Loading…
Reference in a new issue