mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Bug on synch event edit and delete and added offline synch to event to aprove REver
This commit is contained in:
@@ -346,6 +346,7 @@ export class EventsService {
|
||||
|
||||
return this.http.put<Event>(`${puturl}`, event, options).pipe(
|
||||
catchError(err => {
|
||||
console.log('Event edit saved offline')
|
||||
this.offlinemanager.storeRequestData('eventEdit', arrayReq);
|
||||
throw new Error(err);
|
||||
})
|
||||
@@ -481,6 +482,7 @@ export class EventsService {
|
||||
|
||||
return this.http.delete(`${puturl}`, options).pipe(
|
||||
catchError(err => {
|
||||
console.log('Event edit saved offline')
|
||||
this.offlinemanager.storeRequestData('eventDelete', arrayReq);
|
||||
throw new Error(err);
|
||||
})
|
||||
|
||||
@@ -512,4 +512,10 @@ export class SqliteService {
|
||||
console.log(" Get events by id error", JSON.stringify(e));
|
||||
});
|
||||
}
|
||||
|
||||
deleteEventTable() {
|
||||
this.dbInstance.executeSql("delete from "+ this.events).then((res) => {
|
||||
console.log('DELETE EVENT TABLE RESULT ', res)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user