forked from mirrors/misskey
fix i/apps schema
This commit is contained in:
@@ -46,6 +46,14 @@ export const meta = {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
iconUrl: {
|
||||||
|
type: 'string',
|
||||||
|
optional: true, nullable: true,
|
||||||
|
},
|
||||||
|
description: {
|
||||||
|
type: 'string',
|
||||||
|
optional: true, nullable: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -88,6 +96,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||||||
createdAt: this.idService.parse(token.id).date.toISOString(),
|
createdAt: this.idService.parse(token.id).date.toISOString(),
|
||||||
lastUsedAt: token.lastUsedAt?.toISOString(),
|
lastUsedAt: token.lastUsedAt?.toISOString(),
|
||||||
permission: token.app ? token.app.permission : token.permission,
|
permission: token.app ? token.app.permission : token.permission,
|
||||||
|
iconUrl: token.iconUrl,
|
||||||
|
description: token.description ?? token.app?.description ?? null,
|
||||||
})));
|
})));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user