Skip to content

Commit fbc97f7

Browse files
committed
check for action ctx with storage
1 parent 150f9c8 commit fbc97f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class Migrations<DataModel extends GenericDataModel> {
195195
let status: MigrationStatus;
196196
try {
197197
if (args.inline) {
198-
if (!("runAction" in ctx)) {
198+
if (!("storage" in ctx) || ctx.storage.store === undefined) {
199199
throw new Error("Cannot run inline migration from a mutation");
200200
}
201201
return await _runToCompletionInline(ctx, this.component, [

0 commit comments

Comments
 (0)