Skip to content
Snippets Groups Projects
Commit 871c7377 authored by Olivér FACKLAM's avatar Olivér FACKLAM
Browse files

[GroupModel] import simpleGroups into SQL

parent 1aab0e8c
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,15 @@ export class GroupModel {
return null;
}
}
return null;
else { //maybe the simple group isn't buffered yet => check in the LDAP
let sg = SimpleGroup.tryCreate(gid);
if(sg) { //group found => insert into groups table
knex('groups').insert({gid: gid, type: 'simple'}).then(); // <-- .then() necessary for command execution
}
return sg;
}
}
async getGroup(gid: string): Promise<Group> {
......
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