fixed filelist sync on initial login and after upload

This commit is contained in:
Danny Coates 2018-12-12 10:14:06 -08:00
parent e58ebc835c
commit 09a4d7b9ee
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
2 changed files with 3 additions and 4 deletions

View file

@ -13,6 +13,7 @@ module.exports = function(app = choo()) {
app.route('/oauth', async function(state, emit) {
try {
await state.user.finishLogin(state.query.code, state.query.state);
await state.user.syncFileList();
emit('replaceState', '/');
} catch (e) {
emit('replaceState', '/error');