Skip to content

Instantly share code, notes, and snippets.

@Ashoat
Created April 5, 2023 18:14
Show Gist options
  • Save Ashoat/f07fc27a8fe4c456fd5d675a802b3cad to your computer and use it in GitHub Desktop.
Save Ashoat/f07fc27a8fe4c456fd5d675a802b3cad to your computer and use it in GitHub Desktop.
diff --git a/keyserver/src/fetchers/thread-fetchers.js b/keyserver/src/fetchers/thread-fetchers.js
index 427b38c41..64579b264 100644
--- a/keyserver/src/fetchers/thread-fetchers.js
+++ b/keyserver/src/fetchers/thread-fetchers.js
@@ -1,5 +1,7 @@
// @flow
+import fs from 'fs/promises';
+
import { getAllThreadPermissions } from 'lib/permissions/thread-permissions.js';
import {
rawThreadInfoFromServerThreadInfo,
@@ -113,6 +115,7 @@ async function fetchServerThreadInfos(
}
}
+ await fs.writeFile('/Users/ashoat/test_separate_queries.json', JSON.stringify(threadInfos, null, 2));
return { threadInfos };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment