upload chat file

This commit is contained in:
Peter Maquiran
2023-03-16 10:45:05 +01:00
parent ced8320dd2
commit 49d36e2528
12 changed files with 42 additions and 68 deletions
@@ -23,7 +23,7 @@ export class EventoaprovacaoStoreService {
this.keyNameAll = (SHA1("EventoaprovacaoStoreService"+"all")).toString()
setTimeout(()=>{
setTimeout(() => {
let {list , counts} = localstoreService.get(this.keyNameAll, {})
this._list = list || {}
@@ -42,7 +42,11 @@ export class EventoaprovacaoStoreService {
}
save(segment, value: []) {
save(segment: string, value: []) {
if(typeof segment == 'object') {
throw("segment most be userId")
}
if(!this._list[segment]) {
this._list[segment] = []