Browse Source

Adjust for updated @types/lodash

master
Jonas Lochmann 3 weeks ago
parent
commit
a7533b7864
Signed by: Jonas Lochmann <git@inkompetenz.org> GPG Key ID: 8B8C9AEE10FA5B36

+ 5
- 1
src/function/sync/apply-actions/dispatch-child-action/childchangepassword.ts 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
}

+ 5
- 1
src/function/sync/apply-actions/dispatch-parent-action/changeparentpassword.ts 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
}

+ 5
- 1
src/function/sync/apply-actions/dispatch-parent-action/setchildpassword.ts 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
}

Loading…
Cancel
Save