some process in the web sockets ruining the linesmap
This commit is contained in:
@@ -120,7 +120,10 @@ export class LineService {
|
||||
userId: string,
|
||||
newState: LineMemberState
|
||||
) {
|
||||
const query = { lineId, userId: new ObjectId(userId) };
|
||||
const query = {
|
||||
lineId: new ObjectId(lineId),
|
||||
userId: new ObjectId(userId),
|
||||
};
|
||||
const updateSet = { $set: { state: newState, lastVisitDate: new Date() } };
|
||||
|
||||
const updateRes = await collections.lineMembers?.findOneAndUpdate(
|
||||
@@ -128,6 +131,8 @@ export class LineService {
|
||||
updateSet
|
||||
);
|
||||
|
||||
console.log(updateRes);
|
||||
|
||||
return updateRes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user