inline token metadata into the notification instead of just storing the ID
This commit is contained in:
parent
156c7e9543
commit
b62f6ca042
5 changed files with 16 additions and 37 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue