1
1
mirror of https://github.com/leon-ai/leon.git synced 2025-01-06 01:28:56 +03:00
leon/scripts/generate/run-generate-http-api-key.js
2022-01-16 22:22:49 +08:00

15 lines
283 B
JavaScript

import log from '@/helpers/log'
import generateHttpApiKey from './generate-http-api-key'
/**
* Execute the generating HTTP API key script
*/
(async () => {
try {
await generateHttpApiKey()
} catch (e) {
log.error(`Failed to generate the HTTP API key: ${e}`)
}
})()