Skip to content

Commit

Permalink
chore: remove agents subtree
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 committed May 8, 2022
1 parent 625929e commit 887b30d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
5 changes: 0 additions & 5 deletions database.rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
".indexOn": ".value"
}
},
"agents": {
"$provider": {
".indexOn": ".value"
}
},
"assignments": {
"$provider": {
".indexOn": ".value"
Expand Down
14 changes: 0 additions & 14 deletions functions/src/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ export const subscribe = functions.https.onCall(async (data, context) => {

// acquire an agent. this might cause a reconnection but it's ok because
// the user just opened the app.
await admin
.database()
.ref("agents")
.child(provider)
.child(channel)
.set("");

await admin
.database()
.ref("requests")
Expand Down Expand Up @@ -79,13 +72,6 @@ export const unsubscribe = functions.pubsub
console.log("unsubscribing from", provider, channel);

// release the agent.
await admin
.database()
.ref("agents")
.child(provider)
.child(channel)
.set(null);

await admin
.database()
.ref("assignments")
Expand Down

0 comments on commit 887b30d

Please sign in to comment.