feat(caprover): allow human to mark an app as successfully updated
This commit is contained in:
17
services/Human.ts
Normal file
17
services/Human.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import EventStore from "../domain/EventStore";
|
||||
import { ApplicationUpdateFinished } from "../domain/events/ApplicationUpdateFinished";
|
||||
|
||||
/**
|
||||
* Actions done by a Human in the application
|
||||
*/
|
||||
class Human {
|
||||
constructor(private eventStore: EventStore) {}
|
||||
|
||||
markApplicationAsUpdated(appName: string) {
|
||||
this.eventStore.append(
|
||||
new ApplicationUpdateFinished({ id: appName }, new Date())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Human;
|
||||
Reference in New Issue
Block a user