temporary changes to move to main machine
This commit is contained in:
parent
37478dc5c5
commit
a313ecc890
5 changed files with 1033 additions and 4776 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -127,4 +127,8 @@ dist
|
|||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
.pnp.*
|
||||
|
||||
*.sqlite
|
||||
*.bak
|
||||
*.ipynb_checkpoints
|
||||
|
|
4882
Untitled.ipynb
4882
Untitled.ipynb
File diff suppressed because one or more lines are too long
12
package.json
12
package.json
|
@ -12,12 +12,12 @@
|
|||
"build": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@atproto/api": "^0.3.7",
|
||||
"@atproto/did-resolver": "^0.1.0",
|
||||
"@atproto/lexicon": "^0.1.0",
|
||||
"@atproto/repo": "^0.1.0",
|
||||
"@atproto/uri": "^0.0.2",
|
||||
"@atproto/xrpc-server": "^0.2.0",
|
||||
"@atproto/api": "^0.6.20",
|
||||
"@atproto/identity": "^0.2.1",
|
||||
"@atproto/lexicon": "^0.2.2",
|
||||
"@atproto/repo": "^0.3.2",
|
||||
"@atproto/syntax": "^0.1.2",
|
||||
"@atproto/xrpc-server": "^0.3.2",
|
||||
"better-sqlite3": "^8.3.0",
|
||||
"dotenv": "^16.0.3",
|
||||
"express": "^4.18.2",
|
||||
|
|
|
@ -96,7 +96,7 @@ export const getOpsByType = async (evt: Commit): Promise<OperationsByType> => {
|
|||
const record = cborToLexRecord(recordBytes)
|
||||
const create = { uri, cid: op.cid.toString(), author: evt.repo }
|
||||
// console.dir(record, {depth: null})
|
||||
console.log(record)
|
||||
// console.log(record)
|
||||
if (collection === ids.AppBskyFeedPost && isPost(record)) {
|
||||
opsByType.posts.creates.push({ record, ...create })
|
||||
} else if (collection === ids.AppBskyFeedRepost && isRepost(record)) {
|
||||
|
|
Loading…
Reference in a new issue