Skip to content
Snippets Groups Projects
Commit 5b886b3f authored by Matheus CARIUS CASTRO's avatar Matheus CARIUS CASTRO
Browse files

Partially implements Announcements.authors

Missing the verification of authorisations
parent 06c57f5b
No related branches found
No related tags found
No related merge requests found
......@@ -254,10 +254,15 @@ export class Announcement extends Message {
* @async
*/
async authors(args, context: Context, info): Promise<Group[]> {
//TODO: verifier les authorisations
throw "Not implemented";
/*return knex.select({ uid: 'group' }).from('group_message_relationships')
.where('message', messageID).whereIn('status', ['host', 'publish']);*/
await this.fetchData();
var ret:Group[];
for(let t of this.m_authors) {
ret.push(new SimpleGroup(t));
}
return ret;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment