mirror of
https://github.com/outline/outline.git
synced 2026-02-25 22:09:09 -06:00
* Allow returning team apiKeys.list for admins from apiKeys.list * Filter apikeys in store
16 lines
376 B
TypeScript
16 lines
376 B
TypeScript
import ApiKey from "@server/models/ApiKey";
|
|
|
|
export default function presentApiKey(apiKey: ApiKey) {
|
|
return {
|
|
id: apiKey.id,
|
|
userId: apiKey.userId,
|
|
name: apiKey.name,
|
|
value: apiKey.value,
|
|
last4: apiKey.last4,
|
|
createdAt: apiKey.createdAt,
|
|
updatedAt: apiKey.updatedAt,
|
|
expiresAt: apiKey.expiresAt,
|
|
lastActiveAt: apiKey.lastActiveAt,
|
|
};
|
|
}
|