mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 04:04:45 +02:00
16 lines
376 B
TypeScript
16 lines
376 B
TypeScript
import { SSHKey } from '@definitions/user/models';
|
|
|
|
export default class Transformers {
|
|
static toSSHKey (data: Record<any, any>): SSHKey {
|
|
return {
|
|
name: data.name,
|
|
publicKey: data.public_key,
|
|
fingerprint: data.fingerprint,
|
|
createdAt: new Date(data.created_at),
|
|
};
|
|
}
|
|
}
|
|
|
|
export class MetaTransformers {
|
|
}
|