Skip to content

Commit

Permalink
fix: use correct type for update-subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Nov 16, 2024
1 parent 8ffac70 commit 97e180d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ingestor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ export default async function ingestor(req) {
type = 'vote';
}

if (type === 'subscription' && message.type === 'email' && message.value === '') {
type = 'update-subscription';
}

let legacyBody: any = {
address: message.from,
msg: JSON.stringify({
Expand Down

0 comments on commit 97e180d

Please sign in to comment.