mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Remove redundant code
This commit is contained in:
parent
9667e8c2a0
commit
f950075593
4 changed files with 2 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -69,3 +69,4 @@ testem.log
|
|||
bower.json.ember-try
|
||||
package.json.ember-try
|
||||
embed/bindata_assetfs.go
|
||||
dmz-backup*.zip
|
||||
|
|
|
@ -29,7 +29,6 @@ RENAME TABLE
|
|||
`userevent` TO dmz_audit_log,
|
||||
`useraction` TO dmz_action;
|
||||
|
||||
|
||||
-- field renaming
|
||||
ALTER TABLE dmz_org
|
||||
CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL,
|
||||
|
@ -90,7 +89,6 @@ ALTER TABLE dmz_group_member
|
|||
CHANGE `roleid` `c_groupid` VARCHAR(20) NOT NULL,
|
||||
CHANGE `userid` `c_userid` VARCHAR(20) NOT NULL;
|
||||
|
||||
|
||||
ALTER TABLE dmz_permission
|
||||
CHANGE `orgid` `c_orgid` VARCHAR(20) NOT NULL,
|
||||
CHANGE `who` `c_who` VARCHAR(30) NOT NULL,
|
||||
|
@ -101,7 +99,6 @@ ALTER TABLE dmz_permission
|
|||
CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL,
|
||||
CHANGE `created` `c_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
||||
|
||||
|
||||
ALTER TABLE dmz_doc
|
||||
CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL,
|
||||
CHANGE `orgid` `c_orgid` VARCHAR(20) NOT NULL,
|
||||
|
@ -334,6 +331,5 @@ ALTER TABLE dmz_action
|
|||
CHANGE `created` `c_created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
CHANGE `revised` `c_revised` TIMESTAMP DEFAULT CURRENT_TIMESTAMP;
|
||||
|
||||
|
||||
-- deprecations
|
||||
DROP TABLE IF EXISTS `participant`;
|
||||
|
|
|
@ -161,10 +161,6 @@ func (s Store) PublicDocuments(ctx domain.RequestContext, orgID string) (documen
|
|||
return
|
||||
}
|
||||
|
||||
/*
|
||||
FROM document d LEFT JOIN label l ON l.refid=d.labelid
|
||||
*/
|
||||
|
||||
// Update changes the given document record to the new values, updates search information and audits the action.
|
||||
func (s Store) Update(ctx domain.RequestContext, document doc.Document) (err error) {
|
||||
document.Revised = time.Now().UTC()
|
||||
|
|
|
@ -62,6 +62,6 @@ func (m *Mailer) DocumentApprover(recipient, inviterName, inviterEmail, url, doc
|
|||
m.Runtime.Log.Error(fmt.Sprintf("%s - unable to send email", method), err)
|
||||
}
|
||||
if !ok {
|
||||
m.Runtime.Log.Info(fmt.Sprintf("%s unable to send email"))
|
||||
m.Runtime.Log.Info(fmt.Sprintf("%s unable to send email", method))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue