refactor: 型エラー修正 / Fix type errors backend (#9983)
* refactor: fix type errors in backend * revert some changes * なるべくJS挙動を変えない方法に修正 * Update packages/backend/src/server/api/ApiCallService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * コンフリクトするファイルを削除 --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
parent
16ba1b3708
commit
ea92254b73
3 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ type pushNotificationsTypes = {
|
|||
|
||||
// Reduce length because push message servers have character limits
|
||||
function truncateBody<T extends keyof pushNotificationsTypes>(type: T, body: pushNotificationsTypes[T]): pushNotificationsTypes[T] {
|
||||
if (body === undefined) return body;
|
||||
if (typeof body !== 'object') return body;
|
||||
|
||||
return {
|
||||
...body,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue