浏览代码

fixed variable "name" -> "user"

lllllllillllllillll 1 年之前
父节点
当前提交
ca06c09710
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      functions/systeminformation.js

+ 2 - 2
functions/systeminformation.js

@@ -119,9 +119,9 @@ module.exports.containerStats = async function () {
 
 module.exports.containerAction = async function (data) {
 
-    let { name, role, action, container, state } = data;
+    let { user, role, action, container, state } = data;
 
-    console.log(`${name} wants to: ${action} ${container}`);
+    console.log(`${user} wants to: ${action} ${container}`);
     
     if (role == 'admin') {
         var containerName = docker.getContainer(container);