Fix: #10955 TypeError: JSON5.parse is not a function (#10956)

* Fix: JSON5.parse is not a function

* update changelog

* update chglog

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:
CaffeeLake
2023-06-05 21:44:28 +09:00
committed by GitHub
parent fa051a2a5f
commit 8263cc0094
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
import { IsNull, LessThanOrEqual, MoreThan } from 'typeorm';
import { Inject, Injectable } from '@nestjs/common';
import * as JSON5 from 'json5';
import JSON5 from 'json5';
import type { AdsRepository, UsersRepository } from '@/models/index.js';
import { MAX_NOTE_TEXT_LENGTH } from '@/const.js';
import { Endpoint } from '@/server/api/endpoint-base.js';