aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-15 17:38:48 +0100
committerChocobozzz <me@florianbigard.com>2017-12-19 10:53:16 +0100
commit39fdb3c032875ab8c9a1e5e52f76d3baa0ac4e63 (patch)
tree01f1d3e8b51d20fc257e7c82dd75e03e3e02d349 /server/initializers
parenta7d647c4403f8774106f485e8d9323158454e111 (diff)
downloadPeerTube-39fdb3c032875ab8c9a1e5e52f76d3baa0ac4e63.tar.gz
PeerTube-39fdb3c032875ab8c9a1e5e52f76d3baa0ac4e63.tar.zst
PeerTube-39fdb3c032875ab8c9a1e5e52f76d3baa0ac4e63.zip
Unfollow with host
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/migrations/0130-video-channel-actor.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/migrations/0130-video-channel-actor.ts b/server/initializers/migrations/0130-video-channel-actor.ts
index 72a0daef7..0b665b0c7 100644
--- a/server/initializers/migrations/0130-video-channel-actor.ts
+++ b/server/initializers/migrations/0130-video-channel-actor.ts
@@ -167,12 +167,12 @@ async function up (utils: {
167 167
168 const query1 = `UPDATE "actorFollow" 168 const query1 = `UPDATE "actorFollow"
169 SET "actorId" = 169 SET "actorId" =
170 (SELECT "actorId" FROM account WHERE id = "actorFollow"."actorId")` 170 (SELECT "account"."actorId" FROM account WHERE "account"."id" = "actorFollow"."actorId")`
171 await utils.sequelize.query(query1) 171 await utils.sequelize.query(query1)
172 172
173 const query2 = `UPDATE "actorFollow" 173 const query2 = `UPDATE "actorFollow"
174 SET "targetActorId" = 174 SET "targetActorId" =
175 (SELECT "actorId" FROM account WHERE id = "actorFollow"."actorId")` 175 (SELECT "account"."actorId" FROM account WHERE "account"."id" = "actorFollow"."targetActorId")`
176 176
177 await utils.sequelize.query(query2) 177 await utils.sequelize.query(query2)
178 } 178 }