refactor: use toISOString
This commit is contained in:
		| @@ -12,7 +12,7 @@ export class AbuseUserReportRepository extends Repository<AbuseUserReport> { | ||||
|  | ||||
| 		return await awaitAll({ | ||||
| 			id: report.id, | ||||
| 			createdAt: report.createdAt, | ||||
| 			createdAt: report.createdAt.toISOString(), | ||||
| 			comment: report.comment, | ||||
| 			resolved: report.resolved, | ||||
| 			reporterId: report.reporterId, | ||||
|   | ||||
| @@ -12,7 +12,7 @@ export class ModerationLogRepository extends Repository<ModerationLog> { | ||||
|  | ||||
| 		return await awaitAll({ | ||||
| 			id: log.id, | ||||
| 			createdAt: log.createdAt, | ||||
| 			createdAt: log.createdAt.toISOString(), | ||||
| 			type: log.type, | ||||
| 			info: log.info, | ||||
| 			userId: log.userId, | ||||
|   | ||||
| @@ -13,7 +13,7 @@ export class NoteFavoriteRepository extends Repository<NoteFavorite> { | ||||
|  | ||||
| 		return { | ||||
| 			id: favorite.id, | ||||
| 			createdAt: favorite.createdAt, | ||||
| 			createdAt: favorite.createdAt.toISOString(), | ||||
| 			noteId: favorite.noteId, | ||||
| 			note: await Notes.pack(favorite.note || favorite.noteId, me), | ||||
| 		}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo