api/chat
This commit is contained in:
parent
fcd7fdc905
commit
ce88b4e163
@ -31,7 +31,7 @@ export class ChatService {
|
||||
// import { createConnection } from 'typeorm';
|
||||
|
||||
async getConv(username: string): Promise<Conv[]>{
|
||||
// username = "apommier"
|
||||
username = "sadjigui"
|
||||
const convs = await this.chatRepository.query("SELECT * FROM \"conv\" WHERE $1 = ANY (ARRAY[members]);", [username])
|
||||
console.log(`convs= ${convs}`)
|
||||
return convs;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user