feat: add services and separate further
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
State functions
|
||||
*/
|
||||
|
||||
func LatestState(db *gorm.DB) (Command, error) {
|
||||
func LatestCommand(db *gorm.DB) (Command, error) {
|
||||
var state Command
|
||||
err := db.Last(&state).Error
|
||||
return state, err
|
||||
|
||||
Reference in New Issue
Block a user