How to use the save function from ip

Find comprehensive JavaScript ip.save code examples handpicked from public code repositorys.

85
86
87
88
89
90
91
92
93
94
  user: user,
  expirationDate: expireDate,
})
try{
  //Tallennetaan ip kantaan
  const savedIP = await ip.save()
  //Palautetaan tallennettu IP
  response.status(201).json(savedIP)
} catch (error) {
  response.status(400).json({message:'IP already taken'}).end()
fork icon2
star icon0
watch icon0