1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

random name in case it is needed

This commit is contained in:
NEOLPAR 2022-09-05 10:28:09 +01:00
parent 79d2ea0c60
commit c83967042e

View file

@ -55,9 +55,11 @@ export async function upload(ctx: any) {
}
export async function create(ctx: any) {
const { type, source, name, url, headers, githubToken } = ctx.request.body
const { type, source, url, headers, githubToken } = ctx.request.body
let metadata
let directory
// Generating random name as a backup and needed for url
let name = "PLUGIN_" + Math.floor(100000 + Math.random() * 900000)
switch (source) {
case "npm":