fix: upgrades

This commit is contained in:
Zack Spear
2023-06-30 21:40:37 -07:00
parent 747bacb901
commit 8b1b93cf64

View File

@@ -101,11 +101,17 @@ export const useServerStore = defineStore('server', () => {
const serverPurchasePayload = computed((): ServerPurchaseCallbackSendPayload => {
let keyTypeForPurchase: ServerKeyTypeForPurchase = 'Trial';
switch (state.value) {
case 'BASIC': keyTypeForPurchase = 'Basic';
case 'PLUS': keyTypeForPurchase = 'Plus';
case 'PRO': keyTypeForPurchase = 'Pro';
case 'BASIC':
keyTypeForPurchase = 'Basic';
break;
case 'PLUS':
keyTypeForPurchase = 'Plus';
break;
case 'PRO':
keyTypeForPurchase = 'Pro';
break;
}
return {
const server = {
deviceCount: deviceCount.value,
email: email.value,
guid: guid.value,
@@ -114,7 +120,9 @@ export const useServerStore = defineStore('server', () => {
registered: registered.value ?? false,
state: state.value,
site: site.value,
}
};
console.debug('[serverPurchasePayload] server', server);
return server;
});
const serverAccountPayload = computed((): ServerAccountCallbackSendPayload => {