mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
update to work with latest GCP API
This commit is contained in:
parent
6633c9a70f
commit
e9b77117c9
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ export class NewsletterHandler {
|
|||
rawUrl: string,
|
||||
title: string,
|
||||
from: string
|
||||
): Promise<[string] | undefined> {
|
||||
): Promise<string | undefined> {
|
||||
console.log('handleNewsletter', email, rawUrl, title, from)
|
||||
|
||||
if (!email || !html || !title || !from) {
|
||||
|
|
@ -101,7 +101,7 @@ export const handleConfirmation = async (email: string, subject: string) => {
|
|||
const publishMessage = async (
|
||||
topic: string,
|
||||
message: Record<string, string>
|
||||
): Promise<[string] | undefined> => {
|
||||
): Promise<string | undefined> => {
|
||||
return pubsub
|
||||
.topic(topic)
|
||||
.publishMessage({ json: message })
|
||||
|
|
|
|||
Loading…
Reference in a new issue