Skip to content

Commit

Permalink
fix(system): fix rule update error;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Oct 19, 2021
1 parent ab4fb59 commit d825931
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/system-server/src/router/policy/update.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: Maslow<wangfugen@126.com>
* @Date: 2021-09-03 23:09:23
* @LastEditTime: 2021-10-08 01:51:10
* @LastEditTime: 2021-10-19 21:56:11
* @Description:
*/

Expand Down Expand Up @@ -97,9 +97,7 @@ export async function handleUpdatePolicyRules(req: Request, res: Response) {

// build the policy data
const data = {
rules: {
$set: body.rules
},
rules: body.rules,
hash: hashFunctionCode(JSON.stringify(body.rules)),
updated_at: Date.now(),
}
Expand Down

0 comments on commit d825931

Please sign in to comment.