Browse Source

fix: types

pull/2226/head
cany748 9 months ago
committed by Bernd Storath
parent
commit
5cf5711539
  1. 2
      src/app/components/Form/NumberField.vue
  2. 2
      src/app/components/Form/TextField.vue
  3. 8
      src/server/utils/WireGuard.ts

2
src/app/components/Form/NumberField.vue

@ -13,5 +13,5 @@
<script lang="ts" setup> <script lang="ts" setup>
defineProps<{ id: string; label: string; description?: string }>(); defineProps<{ id: string; label: string; description?: string }>();
const data = defineModel<number>(); const data = defineModel<number | null>();
</script> </script>

2
src/app/components/Form/TextField.vue

@ -26,5 +26,5 @@ defineProps<{
disabled?: boolean; disabled?: boolean;
}>(); }>();
const data = defineModel<string>(); const data = defineModel<string | null>();
</script> </script>

8
src/server/utils/WireGuard.ts

@ -209,10 +209,10 @@ class WireGuard {
} }
const [h1, h2, h3, h4] = Array.from(headers); const [h1, h2, h3, h4] = Array.from(headers);
wgInterface.h1 = h1; wgInterface.h1 = h1!;
wgInterface.h2 = h2; wgInterface.h2 = h2!;
wgInterface.h3 = h3; wgInterface.h3 = h3!;
wgInterface.h4 = h4; wgInterface.h4 = h4!;
Database.interfaces.update(wgInterface); Database.interfaces.update(wgInterface);
} }

Loading…
Cancel
Save