Closed Shivamrai15 closed 6 months ago
There can be multiple members with the same score.
If a specified member is already a member of the sorted set, the score is updated and the element reinserted at the right position to ensure the correct ordering. https://redis.io/commands/zadd/
Path: /oss/sdks/ts/redis/commands/zset/zadd
import { NextResponse } from "next/server"; import { authOptions } from "@/lib/auth"; import { getServerSession } from "next-auth"; import { db } from "@/lib/db"; import { getCurrentUserId } from "@/helpers/getCurrentUserId";
export async function PATCH ( request ) { try { const {conversationId, data} = await request.json();
}
In the above code i want to update a message with "Message has been deleted" but it was not updating the message