Skip to content
Snippets Groups Projects
Commit 25cf2d5f authored by Yoan VALLET's avatar Yoan VALLET
Browse files

fix: error 500 on account index creation

parent 23360f33
No related branches found
No related tags found
1 merge request!15Merge Dev to Master
......@@ -118,7 +118,7 @@ export class AccountService {
.find('io.cozy.accounts')
// eslint-disable-next-line @typescript-eslint/camelcase
.where({ account_type: 'index' })
.sortBy([{ 'cozyMetadata.updatedAt': 'desc' }])
// .sortBy([{ 'cozyMetadata.updatedAt': 'desc' }])
.limitBy(1)
return await client.query(query)
} catch (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment