inline token metadata into the notification instead of just storing the ID

This commit is contained in:
Hazelnoot 2025-06-22 12:02:31 -04:00
parent 156c7e9543
commit b62f6ca042
5 changed files with 16 additions and 37 deletions

View file

@ -119,7 +119,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (ps.grantees) {
for (const granteeId of ps.grantees) {
this.notificationService.createNotification(granteeId, 'sharedAccessGranted', { tokenId: accessTokenId }, me.id);
this.notificationService.createNotification(granteeId, 'sharedAccessGranted', { permCount: ps.permission.length, rank: ps.rank ?? null }, me.id);
}
}