on/off add
This commit is contained in:
@@ -63,13 +63,10 @@ const save = async (
|
||||
return "IP Adresi güncellendi";
|
||||
}
|
||||
} catch (error) {
|
||||
// if (error.code === 11000) {
|
||||
// throw new Error("Zaten kaydedilmiş");
|
||||
// }
|
||||
throw new Error("Mongodb'ye kaydedilirken hata oluştu");
|
||||
throw new Error("Mongodb: " + error.message + " (save.controller)");
|
||||
}
|
||||
} else {
|
||||
throw new Error("Hatalı token");
|
||||
throw new Error("Hatalı token (save.controller)");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user