Add Inputs

This commit is contained in:
Abhay Raizada
2024-03-21 23:12:11 +05:30
parent 3aae1f5c5e
commit db290cd5dc
9 changed files with 1083 additions and 14 deletions

View File

@@ -7,14 +7,13 @@ export const getFormTemplate = async (formId: string): Promise<{}> => {
console.log('inside getFormTemplate');
const pool = new SimplePool();
let formIdPubkey = formId;
console.log('everything initialised');
const filter = {
kinds: [0],
authors: [formIdPubkey], //formId is the npub of the form
};
let kind0 = null
try {
console.log('inside trydasdsad');
console.log('inside try');
kind0 = await pool.get(relayList, filter)
console.log('Main thread is working, got event', kind0);
} catch (e) {