enhance(backend): DBのコラム設定としてcreatedAtの値を入れるように/お知らせ機能API修正
This commit is contained in:
parent
455c7eb653
commit
2883f28b87
71 changed files with 730 additions and 219 deletions
|
@ -382,6 +382,7 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||
private async insertNote(user: { id: MiUser['id']; host: MiUser['host']; }, data: Option, tags: string[], emojis: string[], mentionedUsers: MinimumUser[]) {
|
||||
const insert = new MiNote({
|
||||
id: this.idService.gen(data.createdAt?.getTime()),
|
||||
createdAt: data.createdAt!,
|
||||
fileIds: data.files ? data.files.map(file => file.id) : [],
|
||||
replyId: data.reply ? data.reply.id : null,
|
||||
renoteId: data.renote ? data.renote.id : null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue