diff options
| author | CaffeeLake <PascalCoffeeLake@gmail.com> | 2023-06-05 21:44:28 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-05 21:44:28 +0900 |
| commit | 8263cc0094b69db28ac06914108908cfd9d41ea1 (patch) | |
| tree | 50561de724191f2746cd2a622923d88e1acf7dec | |
| parent | :art: (diff) | |
| download | sharkey-8263cc0094b69db28ac06914108908cfd9d41ea1.tar.gz sharkey-8263cc0094b69db28ac06914108908cfd9d41ea1.tar.bz2 sharkey-8263cc0094b69db28ac06914108908cfd9d41ea1.zip | |
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>
| -rw-r--r-- | CHANGELOG.md | 5 | ||||
| -rw-r--r-- | packages/backend/src/server/api/endpoints/meta.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a063006566..4296288788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ --> +## 13.13.1 (unreleased) + +### Server +- Fix: api/metaで`TypeError: JSON5.parse is not a function`エラーが発生する問題を修正 + ## 13.13.0 ### General diff --git a/packages/backend/src/server/api/endpoints/meta.ts b/packages/backend/src/server/api/endpoints/meta.ts index 53d724a9dd..fe68467a64 100644 --- a/packages/backend/src/server/api/endpoints/meta.ts +++ b/packages/backend/src/server/api/endpoints/meta.ts @@ -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'; |