Adjust for updated @types/lodash

This commit is contained in:
Jonas Lochmann 2019-08-26 00:00:00 +00:00
parent 9ce95b7de7
commit a7533b7864
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36
3 changed files with 15 additions and 3 deletions

View file

@ -44,7 +44,11 @@ export const dispatchChildChangePassword = async ({ action, childUserId, cache }
await childEntry.save({ transaction: cache.transaction })
cache.getSecondPasswordHashOfChild.cache.clear()
{
const clear = cache.getSecondPasswordHashOfChild.cache.clear
clear && clear()
}
cache.invalidiateUserList = true
cache.areChangesImportant = true
}

View file

@ -46,7 +46,11 @@ export async function dispatchChangeParentPassword ({ action, cache }: {
await parentEntry.save({ transaction: cache.transaction })
cache.getSecondPasswordHashOfParent.cache.clear()
{
const clear = cache.getSecondPasswordHashOfParent.cache.clear
clear && clear()
}
cache.invalidiateUserList = true
cache.areChangesImportant = true
}

View file

@ -43,7 +43,11 @@ export async function dispatchSetChildPassword ({ action, cache }: {
await childEntry.save({ transaction: cache.transaction })
cache.getSecondPasswordHashOfChild.cache.clear()
{
const clear = cache.getSecondPasswordHashOfChild.cache.clear
clear && clear()
}
cache.invalidiateUserList = true
cache.areChangesImportant = true
}