mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2026-05-03 07:00:11 +00:00
fix: Add active field to user object in daemon response
- Calculate `active` based on the absence of `revokedAt`.
This commit is contained in:
parent
666ab0d987
commit
85dfb739ad
@ -94,6 +94,7 @@ function getKeyUsers(config: IConfig) {
|
|||||||
createdAt: user.createdAt,
|
createdAt: user.createdAt,
|
||||||
lastUsedAt: user.lastUsedAt || undefined,
|
lastUsedAt: user.lastUsedAt || undefined,
|
||||||
revokedAt: user.revokedAt || undefined,
|
revokedAt: user.revokedAt || undefined,
|
||||||
|
active: !user.revokedAt, // Active if not revoked
|
||||||
signingConditions: user.signingConditions, // Include signing conditions
|
signingConditions: user.signingConditions, // Include signing conditions
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user