Files
automatisch/packages/backend/src/serializers/app-config.js
Ali BARIN a57134a89c feat(AppConfig): iterate how apps are managed
- auth clients are always shared, cannot be disabled
- custom connections are enabled by default, can be disabled
- any existing connections can be reconnected regardless of its AppConfig or AppAuthClient states
2024-12-17 14:26:55 +00:00

12 lines
325 B
JavaScript

const appConfigSerializer = (appConfig) => {
return {
key: appConfig.key,
useOnlyPredefinedAuthClients: appConfig.useOnlyPredefinedAuthClients,
disabled: appConfig.disabled,
createdAt: appConfig.createdAt.getTime(),
updatedAt: appConfig.updatedAt.getTime(),
};
};
export default appConfigSerializer;