date bug fix

This commit is contained in:
2024-03-18 17:10:56 +03:00
parent a453c8c10a
commit 620a8fee15
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
const configs = require("../configs");
const DeviceModel = require("../models/device.model");
const date = new Date();
const save = async (
token,
@@ -16,6 +15,7 @@ const save = async (
) => {
if (token === configs.verifyToken) {
try {
const date = new Date();
// Önce kaydı bulalım
const existingDevice = await DeviceModel.findOne({
device_name,