mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-10-18 03:04:42 +00:00
Fix little issue
This commit is contained in:
src
@@ -55,7 +55,7 @@ export class ConversationsHelper {
|
||||
*
|
||||
* @param convID The ID of the conversation to get
|
||||
*/
|
||||
public static async GetSingle(convID : number) : Promise<Conversation | null> {
|
||||
public static async GetSingle(convID : number, userID: number) : Promise<Conversation | null> {
|
||||
const result = await DatabaseHelper.QueryRow({
|
||||
fields: [
|
||||
"*",
|
||||
@@ -72,6 +72,7 @@ export class ConversationsHelper {
|
||||
],
|
||||
where: {
|
||||
"l.id": convID,
|
||||
"u.user_id": userID
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user