mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
posting of ActivityRecord is available in production
This commit is contained in:
@@ -41,10 +41,11 @@ Post all records(except today)
|
|||||||
and remove all posted records
|
and remove all posted records
|
||||||
*/
|
*/
|
||||||
export function postRecords (data) {
|
export function postRecords (data) {
|
||||||
if (process.env.BOOST_ENV === 'development') {
|
if (process.NODE_ENV !== 'production') {
|
||||||
console.log('post failed - on development')
|
console.log('post failed - NOT PRODUCTION ')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let records = getAllRecords()
|
let records = getAllRecords()
|
||||||
records = records.filter(record => {
|
records = records.filter(record => {
|
||||||
return !isSameDate(new Date(), record.date)
|
return !isSameDate(new Date(), record.date)
|
||||||
|
|||||||
Reference in New Issue
Block a user