mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 01:39:31 +02:00
Adjust for updated @types/lodash
This commit is contained in:
parent
9ce95b7de7
commit
a7533b7864
3 changed files with 15 additions and 3 deletions
|
@ -44,7 +44,11 @@ export const dispatchChildChangePassword = async ({ action, childUserId, cache }
|
||||||
|
|
||||||
await childEntry.save({ transaction: cache.transaction })
|
await childEntry.save({ transaction: cache.transaction })
|
||||||
|
|
||||||
cache.getSecondPasswordHashOfChild.cache.clear()
|
{
|
||||||
|
const clear = cache.getSecondPasswordHashOfChild.cache.clear
|
||||||
|
clear && clear()
|
||||||
|
}
|
||||||
|
|
||||||
cache.invalidiateUserList = true
|
cache.invalidiateUserList = true
|
||||||
cache.areChangesImportant = true
|
cache.areChangesImportant = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,11 @@ export async function dispatchChangeParentPassword ({ action, cache }: {
|
||||||
|
|
||||||
await parentEntry.save({ transaction: cache.transaction })
|
await parentEntry.save({ transaction: cache.transaction })
|
||||||
|
|
||||||
cache.getSecondPasswordHashOfParent.cache.clear()
|
{
|
||||||
|
const clear = cache.getSecondPasswordHashOfParent.cache.clear
|
||||||
|
clear && clear()
|
||||||
|
}
|
||||||
|
|
||||||
cache.invalidiateUserList = true
|
cache.invalidiateUserList = true
|
||||||
cache.areChangesImportant = true
|
cache.areChangesImportant = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,11 @@ export async function dispatchSetChildPassword ({ action, cache }: {
|
||||||
|
|
||||||
await childEntry.save({ transaction: cache.transaction })
|
await childEntry.save({ transaction: cache.transaction })
|
||||||
|
|
||||||
cache.getSecondPasswordHashOfChild.cache.clear()
|
{
|
||||||
|
const clear = cache.getSecondPasswordHashOfChild.cache.clear
|
||||||
|
clear && clear()
|
||||||
|
}
|
||||||
|
|
||||||
cache.invalidiateUserList = true
|
cache.invalidiateUserList = true
|
||||||
cache.areChangesImportant = true
|
cache.areChangesImportant = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue