fix: Redirect to collection on self-hosted (#2438)

This commit is contained in:
Saumya Pandey
2021-08-13 12:32:18 +05:30
committed by GitHub
parent 31f4424018
commit a1a4fd1baf
2 changed files with 19 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ router.get("/redirect", auth(), async (ctx) => {
Team.findByPk(user.teamId),
Collection.findOne({
where: { teamId: user.teamId },
order: [["index", "ASC"]],
}),
View.findOne({
where: { userId: user.id },