enhance(backend): DBのコラム設定としてcreatedAtの値を入れるように/お知らせ機能API修正

This commit is contained in:
まっちゃとーにゅ 2023-11-20 06:04:59 +09:00
parent 455c7eb653
commit 2883f28b87
No known key found for this signature in database
GPG key ID: 6AFBBF529601C1DB
71 changed files with 730 additions and 219 deletions

View file

@ -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,