chore: fix some test issues

This commit is contained in:
Aarnav Tale
2026-02-08 11:11:44 -05:00
parent 0b8ae8fa2d
commit 0080cddb55
3 changed files with 121 additions and 145 deletions
@@ -156,6 +156,11 @@ export default defineApiEndpoints<NodeEndpoints>((client, apiKey) => ({
},
setNodeUser: async (nodeId, user) => {
// Headscale 0.28.0 got rid of node reassignment to users
if (client.isAtleast("0.28.0")) {
return;
}
await client.apiFetch<void>("POST", `v1/node/${nodeId}/user`, apiKey, {
user,
});