Remove incorrect cache invalidation.
This commit is contained in:
parent
b7e5d9f71a
commit
470b5b5349
|
@ -42,7 +42,6 @@ export async function updateMetadata(
|
||||||
// this isn't applicable to the user
|
// this isn't applicable to the user
|
||||||
delete metadata.roles
|
delete metadata.roles
|
||||||
ctx.body = await db.put(metadata)
|
ctx.body = await db.put(metadata)
|
||||||
await cache.user.invalidateUser(user._id!)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function destroyMetadata(ctx: UserCtx<void, { message: string }>) {
|
export async function destroyMetadata(ctx: UserCtx<void, { message: string }>) {
|
||||||
|
|
Loading…
Reference in New Issue