mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-01-08 22:19:46 -06:00
Implemented the serverId into the speedtests.js controller
This commit is contained in:
@@ -2,8 +2,8 @@ const tests = require('../models/Speedtests');
|
||||
const {Op, Sequelize} = require("sequelize");
|
||||
const {mapFixed, mapRounded, calculateTestAverages} = require("../util/helpers");
|
||||
|
||||
module.exports.create = async (ping, download, upload, time, type = "auto", error = null) => {
|
||||
return (await tests.create({ping, download, upload, error, type, time})).id;
|
||||
module.exports.create = async (ping, download, upload, time, serverId, type = "auto", error = null) => {
|
||||
return (await tests.create({ping, download, upload, error, serverId, type, time})).id;
|
||||
}
|
||||
|
||||
module.exports.getOne = async (id) => {
|
||||
|
||||
Reference in New Issue
Block a user