mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 16:51:15 +10:00
chore: prettier pass
This commit is contained in:
@ -31,7 +31,7 @@ export default defineEventHandler(async (h3) => {
|
||||
const certificateAuthority = useCertificateAuthority();
|
||||
const bundle = await certificateAuthority.generateClientCertificate(
|
||||
clientId,
|
||||
metadata.data.name
|
||||
metadata.data.name,
|
||||
);
|
||||
|
||||
const client = await clientHandler.finialiseClient(clientId);
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import type {
|
||||
InternalClientCapability} from "~/server/internal/clients/capabilities";
|
||||
import type { InternalClientCapability } from "~/server/internal/clients/capabilities";
|
||||
import capabilityManager, {
|
||||
validCapabilities,
|
||||
} from "~/server/internal/clients/capabilities";
|
||||
@ -34,7 +33,7 @@ export default defineClientEventHandler(
|
||||
|
||||
const isValid = await capabilityManager.validateCapabilityConfiguration(
|
||||
capability,
|
||||
configuration
|
||||
configuration,
|
||||
);
|
||||
if (!isValid)
|
||||
throw createError({
|
||||
@ -45,7 +44,7 @@ export default defineClientEventHandler(
|
||||
await capabilityManager.upsertClientCapability(
|
||||
capability,
|
||||
configuration,
|
||||
clientId
|
||||
clientId,
|
||||
);
|
||||
|
||||
const client = await fetchClient();
|
||||
@ -59,5 +58,5 @@ export default defineClientEventHandler(
|
||||
});
|
||||
|
||||
return {};
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@ -49,5 +49,5 @@ export default defineClientEventHandler(
|
||||
});
|
||||
if (!save)
|
||||
throw createError({ statusCode: 404, statusMessage: "Save not found" });
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@ -51,5 +51,5 @@ export default defineClientEventHandler(
|
||||
throw createError({ statusCode: 404, statusMessage: "Save not found" });
|
||||
|
||||
return save;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@ -44,9 +44,9 @@ export default defineClientEventHandler(
|
||||
user.id,
|
||||
slotIndex,
|
||||
h3.node.req,
|
||||
client.id
|
||||
client.id,
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@ -33,5 +33,5 @@ export default defineClientEventHandler(
|
||||
});
|
||||
|
||||
return saves;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@ -58,5 +58,5 @@ export default defineClientEventHandler(
|
||||
});
|
||||
|
||||
return newSlot;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@ -19,5 +19,5 @@ export default defineClientEventHandler(
|
||||
});
|
||||
|
||||
return saves;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@ -27,5 +27,5 @@ export default defineClientEventHandler(
|
||||
});
|
||||
|
||||
return token.token;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user