Update return type for Facebook verification

This commit is contained in:
Darren Clarke 2024-05-16 13:00:18 +02:00
parent f6dc60eb08
commit e22a8e8d98
7 changed files with 939 additions and 475 deletions

View file

@ -1,5 +1,10 @@
import { ServiceConfig } from "../lib/service";
const getQRCode = async (id: string) => {
console.log("Getting QR code");
return "xya"; // "2hVSc9OT18wbo60WLKlVrd5KqQqYZWdH+kVlRYlrnZcKbjbzwcL4ybkS1/jGaN5bLafX9ZaR829xyhQ=";
};
export const whatsappConfig: ServiceConfig = {
entity: "whatsapp",
table: "WhatsappBot",
@ -59,6 +64,15 @@ export const whatsappConfig: ServiceConfig = {
label: "Token",
copyable: true,
},
{
name: "qrcode",
label: "QR Code",
kind: "qrcode",
size: 4,
getValue: getQRCode,
helperText: "Go ahead, scan it",
refreshInterval: 5,
},
],
listColumns: [
{