diff --git a/source/modules/database/interfaces/IDatabaseArcPlayer.ts b/source/modules/database/interfaces/IDatabaseArcPlayer.ts index 7ed84b4..a7d3df2 100644 --- a/source/modules/database/interfaces/IDatabaseArcPlayer.ts +++ b/source/modules/database/interfaces/IDatabaseArcPlayer.ts @@ -2,6 +2,6 @@ export default interface IDatabaseArcPlayer { uid: number, code: string, name: string, - ptt: number, + ptt?: number, join_date: number } diff --git a/source/publicapi/v1/songinfo.ts b/source/publicapi/v1/songinfo.ts index 2a5f259..bac5e05 100644 --- a/source/publicapi/v1/songinfo.ts +++ b/source/publicapi/v1/songinfo.ts @@ -33,7 +33,7 @@ export default (argument: any): Promise => { _arc_songinfo = await arcsong_bysongid(_arc_songid); } catch (e) { syslog.e(TAG, e.stack); throw new APIError(-4, 'internal error'); } - const _return = { + const _return: any = { id: _arc_songinfo.sid, title_localized: { en: _arc_songinfo.name_en, diff --git a/source/publicapi/v2/songinfo.ts b/source/publicapi/v2/songinfo.ts index 11754cb..520aa33 100644 --- a/source/publicapi/v2/songinfo.ts +++ b/source/publicapi/v2/songinfo.ts @@ -33,7 +33,7 @@ export default (argument: any): Promise => { _arc_songinfo = await arcsong_bysongid(_arc_songid); } catch (e) { syslog.e(TAG, e.stack); throw new APIError(-4, 'internal error'); } - const _return = { + const _return: any = { id: _arc_songinfo.sid, title_localized: { en: _arc_songinfo.name_en,