in mongo die richtie Cllection (properties) aufrufen

This commit is contained in:
2025-11-09 14:32:19 +00:00
parent 6d549ed69b
commit 105cdc74c2
4 changed files with 226 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ export const readChipData = async (sid) => {
let ret = { err: null, chipdata: null}
let client = await connectMongo()
try {
ret.chipdata = await client.db(MONGOBASE).collection('prop_flux').findOne({_id: sid},{projection: {chip: 1, _id: 0}})
ret.chipdata = await client.db(MONGOBASE).collection('properties').findOne({_id: sid},{projection: {chip: 1, _id: 0}})
} catch (e) {
ret.err = e
}