fix(core): update

This commit is contained in:
Philipp Kunz 2023-08-15 01:24:29 +02:00
parent 009f3297b2
commit 842e4b280b
4 changed files with 3 additions and 5 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartdata',
version: '5.0.27',
version: '5.0.28',
description: 'do more with data'
}

View File

@ -269,7 +269,7 @@ export class SmartdataCollection<T> {
* if this.objectValidation is not set it passes.
*/
private checkDoc(docArg: T): Promise<void> {
const done = plugins.smartq.defer<void>();
const done = plugins.smartpromise.defer<void>();
let validationResult = true;
if (this.objectValidation) {
validationResult = this.objectValidation(docArg);

View File

@ -11,7 +11,7 @@ export class DistributedClass extends SmartDataDbDoc<DistributedClass, Distribut
@svDb()
public data: {
status: 'bidding' | 'settled' | 'initializing' | 'stopped';
status: 'initializing' | 'bidding' | 'settled' | 'stopped';
biddingShortcode?: string;
biddingStartTime?: number;
lastUpdated: number;

View File

@ -8,7 +8,6 @@ import * as lik from '@push.rocks/lik';
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartlog from '@push.rocks/smartlog';
import * as smartpromise from '@push.rocks/smartpromise';
import * as smartq from '@push.rocks/smartpromise';
import * as smartrx from '@push.rocks/smartrx';
import * as smartstring from '@push.rocks/smartstring';
import * as smarttime from '@push.rocks/smarttime';
@ -21,7 +20,6 @@ export {
smartdelay,
smartpromise,
smartlog,
smartq,
smartrx,
mongodb,
smartstring,