drop the gid: prefix for group id

like the username, id and name is same in groups.
This commit is contained in:
girish@cloudron.io
2016-02-09 12:23:48 -08:00
parent 00c5aa041f
commit 3649fd0c31
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ function clear(callback) {
database.query('DELETE FROM groupMembers', function (error) {
if (error) return callback(new DatabaseError(DatabaseError.INTERNAL_ERROR, error));
database.query('DELETE FROM groups WHERE id != ?', [ 'gid:admin' ], function (error) {
database.query('DELETE FROM groups WHERE id != ?', [ 'admin' ], function (error) {
if (error) return callback(new DatabaseError(DatabaseError.INTERNAL_ERROR, error));
callback(error);