Add getHashForFile
This commit is contained in:
parent
7417aec7e0
commit
b6a2a5fc3b
@ -1754,6 +1754,10 @@ export default class Services {
|
|||||||
.join('');
|
.join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getHashForFile(commitedIn: string, label: string, fileBlob: { type: string; data: Uint8Array }): string {
|
||||||
|
return this.sdkClient.hash_value(fileBlob, commitedIn, label);
|
||||||
|
}
|
||||||
|
|
||||||
public getLastCommitedState(process: Process): ProcessState | null {
|
public getLastCommitedState(process: Process): ProcessState | null {
|
||||||
if (process.states.length === 0) return null;
|
if (process.states.length === 0) return null;
|
||||||
const processTip = process.states[process.states.length - 1].commited_in;
|
const processTip = process.states[process.states.length - 1].commited_in;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user