mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Adjust for updated @types/lodash
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user