1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

開発中のものはデータを送らない

This commit is contained in:
Rokt33r
2015-11-21 06:37:23 +09:00
parent 1c9cb4516c
commit 263cb581c4

View File

@@ -47,6 +47,10 @@ Post all records(except today)
and remove all posted records
*/
export function postRecords (data) {
if (process.env.BOOST_ENV === 'development') {
console.log('post failed - on development')
return
}
let records = getAllRecords()
records = records.filter(record => {
return !isSameDate(new Date(), record.date)