fix: Forward to incorrect collection url on first signin (#2565)

closes #2560
This commit is contained in:
Tom Moor
2021-09-13 21:35:52 -07:00
committed by GitHub
parent fb335887cb
commit 6c605cf720
4 changed files with 58 additions and 8 deletions

View File

@ -101,10 +101,7 @@ export async function signIn(
});
const [collection, view] = await Promise.all([
Collection.findOne({
where: { teamId: user.teamId },
order: [["index", "ASC"]],
}),
Collection.findFirstCollectionForUser(user),
View.findOne({
where: { userId: user.id },
}),