mirror of
https://github.com/abhay-raizada/PeerScribe.git
synced 2026-04-26 16:24:03 +00:00
Add Inputs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user