Browse Source

fix type issues

pull/1349/head
Bernd Storath 8 months ago
parent
commit
dd6b8485f8
No known key found for this signature in database GPG Key ID: D6C85685A555540F
  1. 4
      src/server/utils/WireGuard.ts

4
src/server/utils/WireGuard.ts

@ -260,7 +260,7 @@ Endpoint = ${WG_HOST}:${WG_CONFIG_PORT}`;
expireDate, expireDate,
}: { }: {
name: string; name: string;
expireDate: string; expireDate: string | null;
}) { }) {
if (!name) { if (!name) {
throw new Error('Missing: Name'); throw new Error('Missing: Name');
@ -415,7 +415,7 @@ Endpoint = ${WG_HOST}:${WG_CONFIG_PORT}`;
expireDate, expireDate,
}: { }: {
clientId: string; clientId: string;
expireDate: string; expireDate: string | null;
}) { }) {
const client = await this.getClient({ clientId }); const client = await this.getClient({ clientId });

Loading…
Cancel
Save