mise a jour next 16 et user
This commit is contained in:
@@ -133,6 +133,13 @@ export async function GET(
|
||||
}
|
||||
}
|
||||
|
||||
// Gestion spéciale pour balances - le champ user est stocké comme ObjectId
|
||||
if (collection === "balances") {
|
||||
if (filter.user && typeof filter.user === "string" && ObjectId.isValid(filter.user)) {
|
||||
filter.user = new ObjectId(filter.user);
|
||||
}
|
||||
}
|
||||
|
||||
const db = await getDatabase();
|
||||
const skip = (page - 1) * limit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user