fix warning in server.js

Signed-off-by: Peterinor <tangyutianbulao@qq.com>