Fixing wrong change type on set
This commit is contained in:
		| @ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "@hibas123/realtimedb", | ||||
|   "version": "2.0.0-beta.2", | ||||
|   "version": "2.0.0-beta.3", | ||||
|   "description": "", | ||||
|   "main": "lib/index.js", | ||||
|   "private": true, | ||||
|  | ||||
| @ -127,7 +127,7 @@ export class DocumentQuery extends Query { | ||||
|  | ||||
|       const lock = await this.database.locks.lock(collection, document); | ||||
|  | ||||
|       let isNew = await this.database.data.get(this.getKey(collection, document)).catch(resNull).then(e => e !== null); | ||||
|       let isNew = !(await this.getDoc(collection, document)) | ||||
|  | ||||
|       return this.database.data | ||||
|          .put(this.getKey(collection, document), encode(data)) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Fabian Stamm
					Fabian Stamm