Skip to content

Commit

Permalink
fix(shottr): missing license message after closing app
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Mar 1, 2024
1 parent ccff7d0 commit cd9ad3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 5 additions & 6 deletions packages/modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { lemonSqueezyActive } from './lemon-squeezy/activate'
import { lemonsqueezyValidate } from './lemon-squeezy/validate'
import { paddleActivate } from './paddle/activate'
import { paddleVerify } from './paddle/validate'

// import { raycastActivate } from "./raycast/activate";
// import { raycastAICompletionsRequest } from "./raycast/customs/ai/completions";
// import { raycastAiModels } from "./raycast/customs/ai/models";
// import { raycastTrialStatus } from "./raycast/customs/custom";
import { spotifyRemoveAds } from './spotify/custom'
import { DashboardModuleRouter } from './dashboard/custom/router'
import { iTunesVerifyReceipt } from './itunes/custom'
Expand Down Expand Up @@ -114,10 +109,14 @@ export const activator: Activator = {
// activate: TyporaActivate,
// },
shottr: {
base: 'https://shottr.cc/licensing',
base: [
'https://shottr.cc/licensing',
'https://shottr-verify-license.blimps.workers.dev',
],
validate: {
base: 'verify.php',
func: shottrVerifyLicense,
type: 'http-response',
},
},
}
9 changes: 6 additions & 3 deletions packages/modules/shottr/validate.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { buildResponse } from '@as/shared'
import { buildResponse, destr, modifyResponse } from '@as/shared'

Check failure on line 1 in packages/modules/shottr/validate.ts

View workflow job for this annotation

GitHub Actions / lint

'buildResponse' is defined but never used

/**
* @url https://shottr.cc/licensing/verify.php
* @url https://shottr-verify-license.blimps.workers.dev
*/
export function shottrVerifyLicense() {
const body = {
tier: '',
...destr($response.body),
tier: '1',
explanation: undefined,
}
buildResponse({
modifyResponse({
body,
})
}

0 comments on commit cd9ad3c

Please sign in to comment.